Previous Message
Next Message

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

Sent by Simon Seeber on 28 January 2002 11:11

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

You can try setting the width to something you know will cut off the 
text and then set the white space to nowrap. You may need to do some 
testing though, I'm not sure about browser support, but I belve it 
works in IE 5+ and NS 6.

white-space: nowrap;

alternatively you could set overflow to visible, (again YMMV):

overflow: visible;
Previous Message
Next Message

Possibly related: