Welcome to WebmasterWorld Guest from 22.214.171.124 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Pubcon Platinum Sponsor 2014
Lining up lists Is there a better way than tables? Pat_Traynor
Sometimes I will code a section of a web page (or a C program or Perl script) the same way over and over, in spite of the fact that there is a much better way to do it, but since I don't know of that way, I don't know to find out how to do it. This comes under that category.
If I have an ordered or unordered list that is centered, the list is going to look skewed, because each item in the list will be centered. The only way that I know how to fix this is to put the whole thing into a table:
<ul> <li>one thing</li> <li>another thing</li> </ul> </td></tr></table>
This just *feels* kludgey. Is there a better way?
I don't use DIVs but would putting it in a <DIV></div> work, it would be less typing.
Just guessing really :)
Do you mean like this?
<ul> <li>one thing</li> <li>another thing</li> </ul> </div>
That doesn't have any effect.
sorry :( knighty
Well for what its worth I don't use the <li> thing instead i would just do something like:
another thing<br> one more thing
which looks the same but cleaner, as for the indenting or centering simply wrap it in a nice style like:
one thing<br> another thing<br> one more thing </p>
where 'listy'" is set up with whatever font and margin you require
<pre> </pre> ? evinrude
Would <div align="left"> do what you are lookin' for? Just curious. Seems to work on IE5 & NS4, here.