HighDots Forums  

List Problem

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss List Problem in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shapper
 
Posts: n/a

Default List Problem - 12-11-2008 , 07:25 AM






Hello,

I am trying to create a list as follows:
1. The items should be inline but the text in each item shouldn't
break from one line to the other;
2. Each item should have margin from the other items around it.

I have the folllowing:

http://www.27lamps.com/Beta/Validator/Validator.html

However, the ul yellow background is not visible. The ul is collapsed.

I tried to replace the "float: left" by "display: inline" but in this
case the text inside a list item breaks from on line to the other.

What is the correct way to do this?

Thanks,
Miguel

Reply With Quote
  #2  
Old   
dorayme
 
Posts: n/a

Default Re: List Problem - 12-11-2008 , 08:31 AM






In article
<a9b635b8-c5de-405b-a446-92b3e0b6cef0 (AT) o4g2000pra (DOT) googlegroups.com>,
shapper <mdmoura (AT) gmail (DOT) com> wrote:


Quote:
http://www.27lamps.com/Beta/Validator/Validator.html

However, the ul yellow background is not visible. The ul is collapsed.

ul.Validator {overflow: hidden;} is one method.

For IE6, you might need a width (or any height) on ul.Validator.

You can also deliver yellow from this UL's parent:

<div class="Container">

<ul class="Validator">
<li><span>Name is required</span></li>
<li><span>Name must have 200 characters or less</span></li>
<li><span>The birthday is invalid</span></li>
<li><span>User already exists</span></li>
</ul>
<div style="clear: left;"></div>

</div>


There are many ways. But as for the perfectly correct way, don't read
the CSS spec, or me, or anyone except the PhD thesis of Haakon Lie. Then
read The Bible, both old and new testaments, the Torah, the Koran, War
and Peace and every postmodernist writer you can find.

--
dorayme


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.