|
| |
|
|
DarlingBri
Posts: 3123 From: Left of Centre, Cork, Ireland Status: offline
|
Set bullet color? - 4/18/2004 18:08:42
Hey... I'd like to set bullet colour on unordered lists, and while I know I can use an image to do that, I would prefer not to if possible. It just seems simple to me: the <li> bullet is by default black, and I want the exact same thing, except orange. How hard can it be? Except I can't find anywhere that says how to do it! Can anyone tell me how to add this to my style sheet? Thanks!
_____________________________
--Bri Bartlet for President 2008 Get a taste of religion. Lick a witch.
|
|
|
|
c1sissy
Posts: 5084 Joined: 7/20/2002 From: NJ Status: offline
|
RE: Set bullet color? - 4/18/2004 18:32:45
Hi Bri, you have to use an image as far as I know. I think that there is a thread in here somewhere that this was discussed a while back. I'll see if I can find it. But as far as I can remember, you have to use an image. Found it Here I hope that this helps you out.
< Message edited by c1sissy -- 4/18/2004 18:36:44 >
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
|
|
d a v e
Posts: 4147 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: Set bullet color? - 4/19/2004 2:47:46
http://www.w3.org/TR/CSS21/generate.html#propdef-list-style-type it's a bit weird how they explain it but it seems that the bullet colour is the same as the text colour and if you want it different then use an image.
_____________________________
David Prescott Gekko web design
|
|
|
|
DarlingBri
Posts: 3123 From: Left of Centre, Cork, Ireland Status: offline
|
RE: Set bullet color? - 4/19/2004 3:47:17
Okie-dokie, thanks. That makes sense, it's just a bummer, as we used to say. (Does anyone under 30 say that anymore?)
_____________________________
--Bri Bartlet for President 2008 Get a taste of religion. Lick a witch.
|
|
|
|
Giomanach
Posts: 6115 Joined: 11/19/2003 From: England Status: offline
|
RE: Set bullet color? - 4/19/2004 4:18:20
Bugger but not bummer (oops just did lol)
_____________________________
|
|
|
|
DarlingBri
Posts: 3123 From: Left of Centre, Cork, Ireland Status: offline
|
RE: Set bullet color? - 4/19/2004 4:48:08
OK, so I used graphics instead and now this is all messed up. Here's my css: ul { margin: 10pt 0 0 0; padding: 0; } li { margin: 10; list-style-image: url('images/bullet.gif'); list-style-position: inside; border: 0px none;; padding-left:0; padding-right:15pt; padding-top:0; padding-bottom:0 } In mozilla, they appear as normal. In IE, there is no space between the bullet and the text and it looks awful. Is there a way to correct for that? Cheers!
_____________________________
--Bri Bartlet for President 2008 Get a taste of religion. Lick a witch.
|
|
|
|
Giomanach
Posts: 6115 Joined: 11/19/2003 From: England Status: offline
|
RE: Set bullet color? - 4/19/2004 4:53:59
to your li add: padding-left: 5px;
_____________________________
|
|
|
|
DarlingBri
Posts: 3123 From: Left of Centre, Cork, Ireland Status: offline
|
RE: Set bullet color? - 4/19/2004 5:26:07
that just shoved everything over 5, it didn't put any padding between the bullet and the text :(
_____________________________
--Bri Bartlet for President 2008 Get a taste of religion. Lick a witch.
|
|
|
|
d a v e
Posts: 4147 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: Set bullet color? - 4/19/2004 5:28:25
one thing is that you have margin: 10; but 10 what bummers, cabbages? try pixels, ems,. percentages (btw use points for print and pixels or percentages or other web based unit for visual work)
_____________________________
David Prescott Gekko web design
|
|
|
|
DarlingBri
Posts: 3123 From: Left of Centre, Cork, Ireland Status: offline
|
RE: Set bullet color? - 4/19/2004 5:47:22
Thanks for that catch :) OK now I have: ul { margin: 10px 0 0 0; padding: 0; } li { margin: 10px; list-style-image: url('images/bullet.gif'); list-style-position: inside; border: 0px none; padding-left:5px; padding-right:15pt; padding-top:0; padding-bottom:0 And I STILL have no spaces! http://dev.bb4l.org.uk/default.asp?f_id=9 Lovely in mozilla, ugly in IE :(
_____________________________
--Bri Bartlet for President 2008 Get a taste of religion. Lick a witch.
|
|
|
|
Giomanach
Posts: 6115 Joined: 11/19/2003 From: England Status: offline
|
RE: Set bullet color? - 4/19/2004 5:51:38
If using an image, why not add a little transparency the right hand side of it?
_____________________________
|
|
|
|
d a v e
Posts: 4147 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: Set bullet color? - 4/19/2004 5:59:11
have you tried it without the list style position 'inside' ? or did you specifically want that? also you have border: 0px none; which should be border: 0; or border:0px;
_____________________________
David Prescott Gekko web design
|
|
|
|
Kitka
Posts: 2515 Joined: 1/31/2002 From: Australia Status: offline
|
RE: Set bullet color? - 4/19/2004 7:57:49
quote:
And I STILL have no spaces! Hello Bri, I think you might have the image in the wrong place. The following seems to work for me, but you'll probably need to adjust the left margin. ul { list-style-image: url('images/bullet.gif'); margin: 10px 0 0 0; padding: 0; } li { margin: 10px; list-style-position: inside; border: 0px none; padding-left:5px; padding-right:15pt; padding-top:0; padding-bottom:0 ; } Good luck.
_____________________________
Kitka **It is impossible to make anything foolproof because fools are so ingenious.**
|
|
|
|
DarlingBri
Posts: 3123 From: Left of Centre, Cork, Ireland Status: offline
|
RE: Set bullet color? - 4/19/2004 10:54:20
Arrgh :) OK, I appreciate all the help but I couldn't make anything work, so I switched tactics. I used this menthod: http://css.maxdesign.com.au/listamatic/vertical05.htm And glory be, it works very similarly across all browsers!
_____________________________
--Bri Bartlet for President 2008 Get a taste of religion. Lick a witch.
|
|
|
|
d a v e
Posts: 4147 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: Set bullet color? - 5/16/2004 7:25:31
quote:
I'd like to set bullet colour on unordered lists, and while I know I can use an image to do that, I would prefer not to if possible. it all seems a lot of trouble to go to when css has a mechanism for setting bullet colour via image use (with your bullet of choice, should images be turned off, i.e. disc, etc). have you got a good enough reason *not* to use images that warrants all these work-arounds?!
_____________________________
David Prescott Gekko web design
|
|
|
|
d a v e
Posts: 4147 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: Set bullet color? - 7/9/2004 2:00:32
interesting though this is , i'm so sorry but i don't understand why you can't just use an an image instead of these workarounds.
_____________________________
David Prescott Gekko web design
|
|
|
|
d a v e
Posts: 4147 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: Set bullet color? - 7/9/2004 3:35:11
well i'm just going on the recommended way according to the spec, but maybe i'm just being too narrow-minded about this?! it would have been so much easier if they had specified bullet colour in the css spec!
_____________________________
David Prescott Gekko web design
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|