|
| |
|
|
Starhugger
Posts: 521 Joined: 4/12/2005 Status: offline
|
List bullets horizontal spacing from text - 4/16/2006 1:12:14
I'm using an image for a list bullet. I'd like to increase the amount of horizontal space between the bullet image and the text. I can't seem to find any reference to doing this, either in my books or online. Here's the CSS code I'm using: ul {
margin-left: 35px;
}
li {
list-style-image: url("images/bulletpink.jpg");
} The HTML is basic stuff: <ul>
<li>One</li>
<li>Two </li>
<li>Three</li>
</ul> I've tried putting margin and padding attributes into the li definition, but nothing seems to change the space. I can't see a way to add a margin-right to the image URL. Any ideas? Starhugger
|
|
|
|
Tailslide
Posts: 6112 Joined: 5/10/2005 From: Out here on the raggedy edge Status: online
|
RE: List bullets horizontal spacing from text - 4/16/2006 3:57:47
You might have more luck using them as background images rather than list-style-image as background images are more reliable in the way they're interpreted by various browsers. li {list-style: none; margin: 0;}
li a {background: url(../images/bulletpink.jpg) 50px 0 no-repeat ;text-decoration:none; border-bottom:none;padding:0 0 0 35px;}
_____________________________
"My strategy is so simple an idiot could have devised it" Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project
|
|
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
|
|
|