SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard iTec's Avatar
    Join Date
    May 2001
    Location
    Sydney, Australia
    Posts
    2,243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    changing colour of bullets with out changing text

    okay, im pretty sure that i know the answer to this (been trying for about 15 minutes now) but is it possilbe to have the bullets on an unordered list (<ul>) while the text keeps the same colour as it would if it wasnt in the <ul> tag? or do i have to use

    <ul>
    <li><font color="#xxxxxx">text</font></li>
    </ul>

  2. #2
    SitePoint Evangelist azizur_rahman's Avatar
    Join Date
    Nov 2001
    Location
    London, UK
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't think there's any other alternative than the way you've suggested...

    unless you can override or extend the UL item in your DOM to have a color property....

    I wonder if there's any alternative then this.
    Azizur Rahman
    Web Application Developer

  3. #3
    SitePoint Guru sowen's Avatar
    Join Date
    Feb 2001
    Location
    Stockport, UK
    Posts
    729
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can do it but you need to create a bullet image of the colour and size you want. then in your css file:

    Code:
    li {
    	
    	list-style : url(put the path to image file here);
    }

  4. #4
    SitePoint Wizard iTec's Avatar
    Join Date
    May 2001
    Location
    Sydney, Australia
    Posts
    2,243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks sowen :0) i guess that will just have to do.


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
  •