Previous Message
Next Message

Re: [css-d] width for inline elements

Sent by Jason Estes on 15 April 2003 17:05


> I used the following styles for the list:
> ul, li {display: inline; margin: 0; padding: 0; color: #339; font-weight:
> bold}
> li {width: 150px;}

if you want a verticle stacking list of links then use

    ul{display:inline;margin:0;padding:0;}
    li {display:block;
        width:150px;
            }

if you want a row instead of a stack, use:
    li {display:inline-block;   /*This is a CSS2.1 property, and is pretty
well supported*/
        width:150px;
        }

that will allow you to display it inline and still give width/height
attributes like a block.



Jason Estes
The BEWB
www.bewb.org
I'm a bewb, your a bewb, everyone's a bewb bewb...


______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: