![]() |
|
#1
|
|||
|
|||
Change bullet color in <UL> ?Is there any way to change the color the bullets in an unordered list, short of using images? My site background is too dark, and it is impossible to see the black bullets.
|
|
#2
|
||||
|
||||
Re: change bullet color in <UL> ?Quote:
From the HTML 4.0 guide at W3C Style sheets provide greater flexibility in suggesting list item styles. The list-style property of CSS includes the added abilities to suppress list item markers, use images as markers, and more. I take this to mean that if you create an LI class in your css file, you can do whatever you want with them. If you are still having trouble, post your code and we can work from there. Of course, this may not be supported by every browser as the docs use the word suggesting not forcing. __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#3
|
||||
|
||||
Re: change bullet colour in <UL> ?Interesting problem to solve...
I must admit, I have not really considered this (different bullet colour) issue before, but I think the following option could be a quick fix until someone posts a more intelligent solution. For example, in this example markup (below), the CSS will render the bullets green while the list items themselves are navy (blue): HTML Code:
Or, something like this: HTML Code:
|
|
#4
|
||||
|
||||
Re: change bullet color in <UL> ?Ok, this is the information I was looking for. This will change the bullet type. Using a combination of Admin's post and this information should give you the flexiblity you desire.
Again, from the online docs at W3C Syntax: list-style: <value> Possible Values: <list-style-type> || <list-style-position> || <url> Initial Value: Not defined Applies to: Elements with display value list-item Inherited: Yes The list-style property is a shorthand for the list-style-type, list-style-position, and list-style-image properties. Examples: CSS Code:
It seems from the documentation that using the span is the supported way to make the color modifications if you don't wan't to use an image. It does sound like something fun to play with. If I come up with something more concrete I'll post it here. HTH Mark __________________
"Opportunity is missed by most people because it comes dressed in overalls and looks like work." --Thomas Alva Edison "Those who would give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety." --Benjamin Franklin "A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs |
|
#5
|
|||
|
|||
Re: change bullet color in <UL> ?thanks admin...that worked
|
|
#6
|
|||
|
|||
Re: change bullet color in <UL> ?Quote:
(EXAMPLE OF BULLETS COLORED DIFFERENTLY THAN TEXT OR LINKS) HTML Code:
(ANOTHER EXAMPLE) HTML Code:
I know there is a way to change each individual bullet, but I forget exactly. I'll post my results when I get a chance. I'm using IE6 in case you wondered. Last edited by cable_guy_67 : 15-Aug-2007 at 03:43.
Reason: Please surround your HTML code with [html] ... [/html]
|
|
#7
|
|||
|
|||
Re: change bullet color in <UL> ?Quote:
HTML Code:
kd6aaj www.myspace.com Last edited by cable_guy_67 : 15-Aug-2007 at 03:44.
Reason: Please surround your HTML code with [html] ... [/html]
|
Recent GIDBlog
A Week in Kuwait by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| change the caption on button when clicked | drewdaman | MS Visual C++ / MFC Forum | 4 | 20-Oct-2004 08:46 |
| Automate a data change php form | mjfmn | MySQL / PHP Forum | 4 | 20-Oct-2003 09:37 |
| Article by the W3C - Cool URI's don't change | jrobbio | Web Design Forum | 4 | 28-Apr-2003 06:40 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The