Re: CSS box calculations when a float is involved

Le Dimanche 16 Janvier 2005 18:26, John Russell a écrit :
> I am trying to do menus with lists instead of tables ;-] ;-]
> The first level requires a horizontal listing so i applied
> float:left to these items --- display lines up items ok
> but when i applied a background and/or a border on the
> containing ul, i found that the width of the ul ran to right margin!
> Shouldn't the ul box be the width of the containing elements
> unless otherwise defined ???
>
> i have included a small demo example for your consideration!
>
> perhaps there is a better way to get horizontal alignment then
> using float but i tried display:inline and that does not allow
> nested lists to position correctly !!
> --
> john russell ve3ll@rac.ca [those are L's as in LLAMA]
> http://home.cogeco.ca/~ve3ll
> http://home.cogeco.ca/~trains
> http://home.cogeco.ca/~cipher

I will have a look at this problem as soon as possible.
     Irène.
-----
Irène Vatton                     INRIA Rhône-Alpes
INRIA                               ZIRST
e-mail: Irene.Vatton@inria.fr       655 avenue de l'Europe
Tel.: +33 4 76 61 53 61             Montbonnot
Fax:  +33 4 76 61 52 07             38334 Saint Ismier Cedex - France

Received on Thursday, 20 January 2005 08:17:46 UTC