Web Hosting Talk







View Full Version : List alignment


fastnoc
05-03-2007, 12:03 AM
I'm not sure how to accomplish this so maybe some of you smart guys can help.

I am changing the way my referrer script presents the display. Well more importantly I will be offering 3 different options. Currently i only display one way. Using a table. Each referrer has a hit count (if enabled) and displays in a second column which makes it very easy to align. So it looks uniform. Doing this with lists is another story.

Here's an example. On the front page of the dev site look at 'Features'. See how the [more] is just tagged at the back of each point? what if I wanted them all to line up the way they would in a table? Does that make sense?
http://new.3gals.com/pgm/web.php

Here's the other page with the same issue. This is the display options I'll be offering to people. The count presents the same problem.
http://www.e-referrer.com/stuff/ul.htm

Any ideas?

fastnoc
05-03-2007, 12:10 AM
well crap. I did just think of one way. Span tags.

Still looking for advise.

fastnoc
05-03-2007, 01:32 AM
UPDATE: Well the spanning didn't work anyway. the only way I can get the text to align right is to use 'float' and when I do that it shifts everything down one line which makes no sense to me. hehehe.

rmfred
05-03-2007, 12:01 PM
You could try a definition list... but I don't know if that would be semantically correct...
http://www.maxdesign.com.au/presentation/definition/dl-table-display.htm

When you tried span, what properties did you assign to the span class?

fastnoc
05-04-2007, 10:36 AM
Wups. i forgot to check this page.

it's aligned now using span style="float:right" but like I said, if you look it's dropped down a line. so each one is off.

That's what I'm not sure how to fix.

Would have responded yestrday but I had a server blow up during a Plesk upgrade that had 300 websites on it. took all day to fix.