Old 28-01-2008, 14:11   #1 (permalink)
shazronline
Registered User
 
Join Date: Oct 2007
Posts: 22
Help With Lists in CSS

Can anyone tell me how I get my images on my website to line up with the links beside them.

My site is:
shazronline.com

The links are at the top right. I need the images to line up even with the images, but no matter what I have done it doesn't work.

CSS Code for the links is:
ul { margin: 0px; }
li.websites { list-style-image: url(../images/nav/websites.png); }
li.wallpapers { list-style-image: url(../images/nav/wallpapers.png); }
li.logos { list-style-image: url(../images/nav/logos.png); }
li.print { list-style-image: url(../images/nav/print.png); }
li.misc { list-style-image: url(../images/nav/misc.png); }
li.links { list-style-image: url(../images/nav/links.png); }
li.other { list-style-image: url(../images/nav/other.png); }
li.contact { list-style-image: url(../images/nav/contact.png); }

Please help!
  Reply With Quote
Old 28-01-2008, 14:21   #2 (permalink)
herkalees
Semantics, yay.
 
herkalees's Avatar
 
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,128
Instead of making the images a list-style-image, you'll find much more control if you make them background images. As far as I know, you cannot adjust the position of anything defined through list-style-image.

...but I've been wrong before.
__________________
  Reply With Quote
Old 28-01-2008, 14:37   #3 (permalink)
pgo
Senior Member
 
Join Date: Jan 2005
Posts: 12,340
Yeah, I almost never use list-style-image and just apply background-images to <li>s.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8