Graphic Design Forum and Web Design Forum  

Go Back   Graphic Design Forum and Web Design Forum »Web Design Forum »CSS Forum

Notices

CSS Forum Cascading Style Sheets (CSS) and XHTML Forum


Reply
 
LinkBack (7) Thread Tools Display Modes
  7 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 25-11-2007, 06:56 AM
Junior Member
 
Join Date: Jul 2007
Location: Minneapolis, MN (suburbs)
Posts: 11
Default CSS List background image bullets - Cross browser problem

Hi guys,

I am working on a web site for a company and have found my self hung up on some CSS Background-image Bullets
Note that I've disabled the links and the images for privacy reasons, I'm just concerned about the bullets.

They can be seen here...
Untitled Document



In Internet Explorer, the bullets are fine (I intend to shift them up a pixel or two), however, in FireFox, the bullets don't hang anywhere close to where I'd like them too. Which would be adjacent to the first line of however many lines may exist.

I've tried a few different approaches and can't get close. Here's the CSS controlling those blue bullets.

ul {
list-style-type: none;
padding: 0px;
margin: 0px;
}
ul li {
background-image: url(../images/lmm_blue-bullet.jpg);
background-repeat: no-repeat;
background-position: 12px left;
margin-left:12px;
padding: 4px 25px 0px 8px;
}

This code comes through a linked style sheet.

Thoughts? It seems to be a background-position problem, but not sure how to handle it. Anyone know a good FireFox CSS resource?

Thanks for any advice.

Last edited by bradgreens; 25-11-2007 at 08:29 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #2 (permalink)  
Old 25-11-2007, 09:13 AM
PR Design's Avatar
CSS Wizardry
 
Join Date: May 2007
Location: Yorkshire, England
Gender: Male
Posts: 3,011
Default

Try Firebug. Tinker with your source and see what's what.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #3 (permalink)  
Old 25-11-2007, 11:04 PM
Junior Member
 
Join Date: Jul 2007
Location: Minneapolis, MN (suburbs)
Posts: 11
Default FireFox - No Background-position support

Thanks PR

The debugger doesn't read the ul li {background-position: 12px left} whatsoever. Whether linked or as an internal style sheet (didn't bother with inline, that would be too inefficient).

I'm going to look further into Firefox list items, and mostly consider detecting the browser and having two style sheets to select for the appropriate browser...

If anyone knows a more obvious or simpler way to handle positioning those custom bullets in Firefox, please let me know – Currently my intention is to detect for Firefox, and have a new CSS background-image with 12 white pixels above the blue dot.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #4 (permalink)  
Old 26-11-2007, 12:33 AM
LeadMagnet's Avatar
Mr. Tambourine Man
 
Join Date: Jun 2007
Location: Ireland
Gender: Male
Posts: 1,381
Default

I've come across that problem before. Your solution seems to be the best way.
__________________
Subtlety is my middle name... and first and last in case you didn't get the point.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #5 (permalink)  
Old 26-11-2007, 07:26 AM
PR Design's Avatar
CSS Wizardry
 
Join Date: May 2007
Location: Yorkshire, England
Gender: Male
Posts: 3,011
Default

I've got a similar set up, but mine works fine: Services :: PR Design Web Team - Web Design, Devlopment & Maintenance In West Yorkshire

Dunno if you wanna take a look around the source. Up to you.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #6 (permalink)  
Old 27-11-2007, 01:40 PM
Batfink
 
Join Date: Feb 2007
Posts: 52
Default

Try this:

ul li {
background: url(../images/lmm_blue-bullet.jpg) 0 11px no-repeat;
margin-left:12px;
padding: 4px 25px 0px 8px;
}

That should solve your problem.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #7 (permalink)  
Old 28-11-2007, 02:21 PM
Junior Member
 
Join Date: Jul 2007
Location: Minneapolis, MN (suburbs)
Posts: 11
Default

I will do that as soon as I get home today, just curious, is their something about the shorthand CSS that FireFox likes more? Maybe I should pickup a new book, I haven't written styles for about 2 years.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #8 (permalink)  
Old 29-11-2007, 02:49 AM
Junior Member
 
Join Date: Jul 2007
Location: Minneapolis, MN (suburbs)
Posts: 11
Default

It worked, looks like I should just catch up on writing cleaner CSS. Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #9 (permalink)  
Old 30-11-2007, 10:54 AM
Batfink
 
Join Date: Feb 2007
Posts: 52
Default

Quote:
Originally Posted by bradgreens View Post
It worked, looks like I should just catch up on writing cleaner CSS. Thanks
No probs, i think it was just down to your positioning.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
Reply


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

BB 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
Background image for headers? dannynosleeves CSS Forum 3 05-12-2007 09:14 AM
Resizing a css background image jontywagener CSS Forum 2 23-11-2007 12:14 PM
CSS background image (fit screen) PolarBear CSS Forum 24 05-11-2007 04:53 PM
Background image jwade_m Graphic Design and Web Design Help 10 03-11-2007 03:25 PM
Splashup - Desktop image-editing power in a web browser, going where you go. Graphic Design Links Graphic Design Links 0 02-11-2007 10:10 AM


All times are GMT. The time now is 12:34 AM.



Estetica Design Forum's Privacy Policy
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC5