Previous Message
Next Message

Wrap text in li

Sent by Climis, Tim on 9 April 2009 21:09


> I ddint use a parent <ul> but even though the text in the <li> is not wrapping, meaning I want it
to
> display within a certain area so if ther is more than one line of text it wud automatically skip
to 
> a next line and align itself...

Huh?  If you have an <li> it needs to be in a <ul>, <ol>, or <menu> (and you shouldn't really use
<menu>.  It's deprecated). That's the rules. That could be one source of your problem.

But if you want to limit it to a particular width, that's what the width property is for.

Something like:
li {
  width: 25%;
}

Or even better
ul (or whatever list container you're using) {
  width: 25%;
}

---Tim
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: