This is a discussion on "Multi Colored Lists" within the Web Page Design section. This forum, and the thread "Multi Colored Lists are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Multi Colored Lists
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
Multi Colored Lists
This was asked and I thought it was interesting so here goes making bullets a different color from the list content.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Last edited by moojoo; Oct 12th, 2006 at 16:09. |
|
|
|
|||
|
Re: Multi Colored Lists
Nifty trick........ might be a good idea to provide some explanation to run along with it though
jusy imo |
|
||||
|
Re: Multi Colored Lists
making bullets and list content different colors. Too lazy to upload a screenshot atm.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
|||
|
Re: Multi Colored Lists
I think this is likely to confuse newcomers to css as you only have one <li> element and it has a <span> element inside it, so the spanned text is always going to be the #foo li span colour.
I think I know what you wanted to achieve but this isn't it. IMO. |
|
||||
|
Re: Multi Colored Lists
Hell man, if you have a better way to make bullets and li content different colors without using images let me know. Maybe with a selector?
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Last edited by moojoo; Oct 11th, 2006 at 00:21. |
|
|||
|
Re: Multi Colored Lists
I originally interprited your post as meaning each li in a group of li's to be a different colour.
I now realise this is not what you meant. You want the bullett to be a different colour to the text but the same throughout the group of li's. I'm with you now. |
|
||||
|
Re: Multi Colored Lists
Yeah Herkalees asked me about this the other day and this was the first solution I came up with in a pinch without using images. I have been playing with some selectors etc but couldn't find another way to do it... But for now this seems acceptable without too much extra markup.
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
|
|
|||
|
Re: Multi Colored Lists
I was under the same impression geoff.
The initial post title had me thinking that each list item would be a different color. The first sentence of his post explained it better, but still not real clear. After seeing the code it was definately clear. Multi colored list items would just require a separate ID tag for each span and a coordinating CSS color declaration. |
![]() |
| Tags |
| css, lists |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multi-league and Multi-tiered team schedule | overkil6 | Website Planning | 3 | Jun 17th, 2008 22:04 |
| Single Colored Themes | josephman1988 | Webforumz Cafe | 4 | Sep 29th, 2007 21:48 |
| colored scroll bar | bruno89 | Web Page Design | 4 | Mar 2nd, 2006 19:56 |
| Need help with my lists | csa | Web Page Design | 1 | Dec 1st, 2005 15:02 |