Results 1 to 3 of 3

Thread: Unordered Lists

  1. #1

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    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.

  2. #2
    Fanatic Member Jerry Grant's Avatar
    Join Date
    Jul 2000
    Location
    Dorset, UK
    Posts
    810

    Wink

    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>
    Jerry Grant................tnarG yrreJ
    Website: <JG-Design></.net>
    Email: [email protected]
    Working towards a bug free world......
    (Not a Microsoft employee)

  3. #3

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    K, thanks.
    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
  •  



Click Here to Expand Forum to Full Width