elendil
12-01-2005, 07:05 PM
Hello,
i am trying to give a color to the disks which you can use whith <ul> and <li>
any ideas on how to do that ?¿?¿
Mr. Initial Man
12-01-2005, 08:23 PM
I can give you two ideas, both of which require CSS.
If you want the disks to be colored differently than the text, you could put this into your style sheet.
ul.color li{
color:#rrggbb;
}
ul.color span{
color:#rrggbb
}
or you could use this:
ul.color{
color:#rrggbb;
}
ul.color span{
color:#rrggbb
}
Then you would have in your HTML:
<ul class="color">
<li><span>Text here</span></li>
<li><span>Text here</span></li>
<li><span>Text here</span></li>
</ul>
You could also use an image for bullets:
ul{
list-style-image: url(image URL);
}
Then you'd simply create the images of colored dots.
I hope this has been of help. :)
elendil
12-06-2005, 11:19 AM
I can give you two ideas, both of which require CSS.
If you want the disks to be colored differently than the text, you could put this into your style sheet.
ul.color li{
color:#rrggbb;
}
ul.color span{
color:#rrggbb
}
or you could use this:
ul.color{
color:#rrggbb;
}
ul.color span{
color:#rrggbb
}
Then you would have in your HTML:
<ul class="color">
<li><span>Text here</span></li>
<li><span>Text here</span></li>
<li><span>Text here</span></li>
</ul>
You could also use an image for bullets:
ul{
list-style-image: url(image URL);
}
Then you'd simply create the images of colored dots.
I hope this has been of help. :)
thank you