|
-
Apr 17th, 2001, 09:58 PM
#1
Thread Starter
Fanatic Member
Is there any way I can change the color of a UL bullet with CSS, without changing the color of the body text?
Alcohol & calculus don't mix.
Never drink & derive.
-
Apr 18th, 2001, 06:22 AM
#2
Fanatic Member
Assign the UL with a style, then each LI text with a DIV style.
See the following example:
Code:
<HTML>
<HEAD>
<TITLE>UL CSS test</TITLE>
<STYLE type="text/css">
UL.cBullet
{
color: red;
}
DIV.cText
{
color: blue;
font-family: verdana,arial;
}
</style>
</HEAD>
<BODY>
<UL class="cBullet">
<LI><DIV class="cText">This is the first bulleted item in the list.</DIV>
<LI><DIV class="cText">And this is the second bulleted item in the list.</DIV>
</UL>
</FONT>
</BODY>
</HTML>
-
Apr 18th, 2001, 01:46 PM
#3
Thread Starter
Fanatic Member
Alcohol & calculus don't mix.
Never drink & derive.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|