Reply
display block AND list-style (image)
Old 04-04-2008, 11:03 AM display block AND list-style (image)
Gilligan's Avatar
Dead Like Me

Posts: 1,572
Name: Stefan
Location: London, UK
It seems that as soon as I add display:block; to a li element, the list-style-image disappears.

Is this supposed to happen? If so, how can I resolve it?
Gilligan is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-04-2008, 11:06 AM Re: display block AND list-style (image)
wayfarer07's Avatar
Insomniac

Posts: 573
Name: Abel Mohler
Location: Asheville, North Carolina USA
I think you have to put a margin on the left edge to make it show up.
__________________
Go FREELANCE <=====||=====> Hire Me
wayfarer07 is online now
Reply With Quote
View Public Profile
 
Old 04-04-2008, 11:14 AM Re: display block AND list-style (image)
Gilligan's Avatar
Dead Like Me

Posts: 1,572
Name: Stefan
Location: London, UK
Add margin to which element
Gilligan is offline
Reply With Quote
View Public Profile
 
Old 04-04-2008, 12:16 PM Re: display block AND list-style (image)
serandfae's Avatar
Soul Man

Posts: 4,254
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Let's have a link or the code. How are you putting the image in? You usually put the image in as a background image with a no-repeat where you have it displaying as block, not as list-style-image.

tim
__________________
Springs hop eternal in the hearts of the eccentric....
E-GADS! (Evil Genius' Art and Design Studio) http://bellsouthpwp2.net/j/a/jam331
serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 04-04-2008, 12:19 PM Re: display block AND list-style (image)
wayfarer07's Avatar
Insomniac

Posts: 573
Name: Abel Mohler
Location: Asheville, North Carolina USA
a margin on the <li> element. This should be done in the CSS of course:
Code:
 ul li {margin-left: 15px}
Of course, this margin will need something to push against, and serandfae is probably correct about using background images instead of list-style-image. This is how I handle it in many cases, in fact, because there is more control over backgrounds anyway...
__________________
Go FREELANCE <=====||=====> Hire Me
wayfarer07 is online now
Reply With Quote
View Public Profile
 
Old 04-04-2008, 12:24 PM Re: display block AND list-style (image)
Gilligan's Avatar
Dead Like Me

Posts: 1,572
Name: Stefan
Location: London, UK
yeah, i just realized I should of used a background image for it. Changed that now, everything working
Gilligan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to display block AND list-style (image)
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12579 seconds with 13 queries