|
Posted by dorayme on 07/28/07 03:21
In article <1Rvqi.74$AC7.2@newssvr19.news.prodigy.net>,
"tshad" <t@home.com> wrote:
> I am trying to create dynamic menus and started out with using a ul list
> that I then style using classes.
>
> The problem is I couldn't figure out how to Center or Right-Justify the list
> in all browsers.
Do you mean making the list go to the centre of the containing
element? (right justification is more a term about the line up of
the right edge of a block of text, no raggedness).
First thing is to simplify all that code you quote and see how to
make a simple case work.
This might give you some idea. It is not a simple matter when you
want the list item bullets, but leave out for now and try the
idea in different browsers:
<http://tinyurl.com/2f6dke>
I was a little surprised to see that this looks very similar in
both IE WIn 6 and other non-IE browsers.
To make the text align idea work but without having the lists
items centered in respect to each other (nicer for last two lists
in the url above to be "internally" left aligned, you need to
fiddle about with a wrapper div and distinguish the alignments.
The truth is, as David Doward once said, all this centering is no
trivial matter. It is very liberating not to mostly want it!
--
dorayme
Navigation:
[Reply to this message]
|