Webmaster Forum

Advertise Here   High Bandwidth Dedicated Servers   V7N Directory
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Reply
 
LinkBack Thread Tools Display Modes
Old 01-15-2008, 04:11 AM   #1 (permalink)
Contributing Member
 
Join Date: 09-03-07
Location: England
Posts: 358
iTrader: 0 / 0%
Latest Blog:
None

Boogle is liked by somebodyBoogle is liked by somebodyBoogle is liked by somebodyBoogle is liked by somebodyBoogle is liked by somebody
list-style-image never lining up?

Has anyone else had this problem? I want to use my own bullet point image but even though the image is created correctly, i.e. no spare whitespace anywhere, it's sized correctly and everything but all the time the image is too high and doesn't line up with the text in the <li> element?

Does anyone know a workaround for this?

sample code:
Code:
.parent {list-style-image: url(path/myimage.ext);} <ul class="parent"> <li>Some Text</li> </ul>
Cheers,
Boog's
__________________
Price is what you pay... Value is what you get.
Boogle is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 01-15-2008, 06:23 AM   #2 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania (atm)
Posts: 2,846
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
One way would be this (the one I often choose) :

Set the image as the item's background and the apply a padding-left of *px.

* = the width of your image + 2 or 3 for some more space.

hth
__________________
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-15-2008, 06:28 AM   #3 (permalink)
Contributing Member
 
Join Date: 09-03-07
Location: England
Posts: 358
iTrader: 0 / 0%
Latest Blog:
None

Boogle is liked by somebodyBoogle is liked by somebodyBoogle is liked by somebodyBoogle is liked by somebodyBoogle is liked by somebody
Ah good idea, Costin, it worked perfect - my saviour again!

Am gonna get you to critique my new site soon... it's on the verge on being completed!

Cheers Cost,
Nat
__________________
Price is what you pay... Value is what you get.
Boogle is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-15-2008, 06:31 AM   #4 (permalink)
v7n Mentor
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania (atm)
Posts: 2,846
iTrader: 0 / 0%
Costin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web proCostin Trifan is a highly respected web pro
ok!
__________________
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 01-15-2008, 11:28 AM   #5 (permalink)
Contributing Member
 
Join Date: 07-30-05
Posts: 282
iTrader: 0 / 0%
Latest Blog:
None

Radnor is just really niceRadnor is just really niceRadnor is just really niceRadnor is just really niceRadnor is just really niceRadnor is just really niceRadnor is just really niceRadnor is just really niceRadnor is just really niceRadnor is just really niceRadnor is just really nice
Used this before.... Image is 30w X 14h

Code:
font-size:14px; margin: 00; list-style: outside; list-style-image:url(images/abc.gif);
Radnor is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
'Unable to save image' error for sig image danparks V7N Forum Support 20 02-22-2008 04:13 PM
40-50'th style image Ricoool Graphic Design Forum 10 01-15-2005 04:23 PM
Adding one image to another image via script Pimpen 2010 Coding Forum 19 08-07-2004 11:41 AM
Can a 'swap image' graphic contain image mapping? lizbeth Coding Forum 2 04-22-2004 02:32 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 04:34 AM.
© Copyright 2008 V7 Inc


Search Engine Optimization by vBSEO 3.1.0 ©2007, Crawlability, Inc.