You are here: Re: Cascading Style Sheets (CSS) question- LI items in horizontal display « HTML « IT news, forums, messages
Re: Cascading Style Sheets (CSS) question- LI items in horizontal display

Posted by Adrienne Boswell on 01/31/06 03:59

Gazing into my crystal ball I observed bbcrock@gmail.com writing in
news:1138658859.708222.302660@g49g2000cwa.googlegroups.com:

> I have several items in a UL/LI relationship. These items are nested
> inside a div. I want to make the items display horizontal based on CSS
> relationships only (not resorting to html tables). I read that the way
> to do this is to use
>
> display: inline;
>
> but It's not changing the way the items display at all. Can anyone
> point me to a really good description of this tag, another tag that
> would move the LI items to a horizontal display or good ways to debug
> CSS?
>
> thanks!
>
> Don
>
>

css:
ul li
{
/*adding padding and border so the text does not run together visually*/
display: inline;
padding-left:1em;
padding-right:1em;
border-right:1px solid #c0c0c0;
}

html:
<ul>
<li>a</li>
<li>b</li>
<li style="border:0">c has no border</li>
</ul>


--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация