Positioning Dynamic menus
Positioning Dynamic menus
am 28.07.2007 02:11:54 von tshad
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. I did find this on the Net - but it doesn't say how to
right justify it (even though the articles says it is going to show how to
left or right justify a list that works for all browsers. IE being the
problem).
How do I right justify the list?
**************************************************
"http://www.w3.org/TR/html4/loose.dtd">
Untitled Document
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Horizontal List - alternative
Positioning horizontal unordered lists
10. An alternative horizontal unordered list - centered
For all browsers including Internet Explorer IE6
by Stu Nicholls
******************************************************
Thanks,
Tom
Re: Positioning Dynamic menus
am 28.07.2007 03:30:01 von Neredbojias
Well bust mah britches and call me cheeky, on Sat, 28 Jul 2007 00:11:54
GMT tshad scribed:
> 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. I did find this on the Net - but it doesn't
> say how to right justify it (even though the articles says it is going
> to show how to left or right justify a list that works for all
> browsers. IE being the problem).
>
> How do I right justify the list?
>
> **************************************************
>
> "http://www.w3.org/TR/html4/loose.dtd">
>
>
> Untitled Document
>
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
>
> Horizontal List - alternative
>
>
>
>
> Positioning horizontal unordered lists
> 10. An alternative horizontal unordered list - centered
> For all browsers including Internet Explorer IE6
> by Stu Nicholls
>
>
>
>
> ******************************************************
Had like prob, -used a one-cell table and centered it.
--
Neredbojias
Half lies are worth twice as much as whole lies.
Re: Positioning Dynamic menus
am 28.07.2007 03:46:31 von John Hosking
tshad wrote:
> I am trying to create dynamic menus and started out with using a ul list
> that I then style using classes.
Good idea.
>
> The problem is I couldn't figure out how to Center or Right-Justify the list
> in all browsers. I did find this on the Net - but it doesn't say how to
> right justify it (even though the articles says it is going to show how to
> left or right justify a list that works for all browsers. IE being the
> problem).
Well, a URL to your source page (where you found this code) would have
been useful, at least for me.
Also, the URL for your attempt is pretty much mandatory for me (for one)
to spend any time looking at your issues. I've pretty much given up on
the new file-copy-paste-upload routine.
>
> How do I right justify the list?
And BTW, just as a bit of pedantry to ease my current grumpiness, if not
be of some small usefulness, there isn't really a term "right justify."
With any given text, one can left-align it, or right-align it, or
justify it (combining the effects of the first two), or leave both edges
"ragged". You want "right aligned" text. (Which is alignment more than
positioning, but I won't mark off points for that. This time. ;-)
>
> **************************************************
>
> "http://www.w3.org/TR/html4/loose.dtd">
>
>
>
> Untitled Document
>
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
Hey, two doctypes, and neither of them is HTML 4.01 strict. No wonder
I'm grumpy. (Is this really what you got from Stu's place? Does the page
you're playing with [or fighting against] validate?)
>
> Horizontal List - alternative
>
>
>
>
> Positioning horizontal unordered lists
> 10. An alternative horizontal unordered list - centered
> For all browsers including Internet Explorer IE6
> by Stu Nicholls
>
>
>
>
Uh, what was the question again?
Ah, yes. Did you try text-align:right on the ul.menu?
HTH
--
John
Pondering the value of the UIP: http://blinkynet.net/comp/uip5.html
Re: Positioning Dynamic menus
am 28.07.2007 05:21:56 von dorayme
In article <1Rvqi.74$AC7.2@newssvr19.news.prodigy.net>,
"tshad" 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:
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
Re: Positioning Dynamic menus
am 02.08.2007 18:42:09 von tshad
I finally found a way to do it. I also originally put a table around the
whole thing and just change the align tag. This was done without the table.
What I did was:
*********************************************************
>>
>>
>>
>> Positioning horizontal unordered lists
>> 10. An alternative horizontal unordered list - centered
>> For all browsers including Internet Explorer IE6
>> by Stu Nicholls
>>
>>
>>
>>
>> ******************************************************
>
>
> Had like prob, -used a one-cell table and centered it.
>
>
> --
> Neredbojias
> Half lies are worth twice as much as whole lies.