|
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.
Navigation:
[Reply to this message]
|