Previous Message
Next Message

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

Sent by Rijk van Geijtenbeek on 27 January 2002 17:05


On Sunday, January 27, 2002, Porter wrote:

...

PG> It would be nice if there were some way to say, "Make the
PG> width of this element as small as possible without wrapping its 
PG> contents," but off the top of my head I can't think of any way that 
PG> would work for this.

That is indeed the crux of the centering problem. CSS1 doesn't have a
solution. In CSS2, you could use
  UL {display: table;}
  
The traditional rendering of TABLE, that is imposed by this rule, is
the only way to get a 'shrink-wrapped' box for CSS to center.

Of course, browser support is limited.


Greetings,
 Rijk                            [EMAIL-REMOVED]

Mot du Jour:
All you need to be a fisherman is patience and bait.
Previous Message
Next Message

Message thread: