SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Aug 2005
    Posts
    254
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    colour bullet points

    Hi I just want to colour my bullet points - do I have to export an image to use as a background image?

    Is there another way to do it with CSS?

    Thanks
    Steve

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,556
    Mentioned
    183 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    Do you mean something like this:
    Code:
     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     <html xmlns="http://www.w3.org/1999/xhtml">
     <head>
     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
     <title>Untitled Document</title>
     <style type="text/css">
     li.a {color:blue}
     li.b {color:red}
     li.c {color:green}
     li.d {color:orange}
     li.e {color:yellow}
     li.f {color:black}
     
     span{color:#333}
     
     </style>
     </head>
     <body>
     <ul>
         <li class="a"><span>Testing</span></li>
         <li class="b"><span>Testing</span></li>
         <li class="c"><span>Testing</span></li>
         <li class="d"><span>Testing</span></li>
         <li class="e"><span>Testing</span></li>
         <li class="f"><span>Testing</span></li>
     </ul>
     </body>
     </html>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •