Previous Message
Next Message

RE: [css-d] RE: how to center a listt

Sent by John Woram on 27 January 2002 13:01


Chris asked: "Is it possible that it is illegal or impossible to
horizontally center an unordered list element without centering the
individual lines?"

Would this do it?

ul {margin-left:50%;}

That puts the bullets in the center of the page, if that's what you
want. You could then add margin-right:xx%; if you wanted the list
lines to wrap before reaching the right margin.

OTOH, if you want to center a long line in an unordered list, and then
have all the other bullets line up vertically, I have no clue.

John
Previous Message
Next Message

Message thread: