Reply to Re: Lists with multiple styles

Your name:

Reply:


Posted by Dylan Parry on 11/21/06 16:43

Bubu wrote:
> It's possible to make an unordered list with different styles for every li?

Sure. Using your example HTML, the CSS could be (note the spaces between
ul and the . character):

ul .liclass-1 {
list-style-type: circle;
}

ul .liclass-2 {
list-style-type: square;
}

ul .liclass-3 {
list-style-type: disc;
}

I can't remember whether some browsers have problems with class names
containing hyphens though, so you may want to either find out if that is
so or simply refrain from using them in class names.

--
Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk

Programming, n: A pastime similar to banging one's head
against a wall, but with fewer opportunities for reward.

[Back to original 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

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