Reply
Background image not showing in FF, fine in IE
Old 02-23-2008, 01:29 AM Background image not showing in FF, fine in IE
Junior Talker

Posts: 2
Name: Shannon
Hello. I'm fairly to new to CSS and have been searching for hours for a fix to this problem. The test page is here: http://phatmommy.com/designs/ and the stylesheet is here: http://phatmommy.com/designs/wp-cont...ffee/style.css

The problem is with the #main div where I have
background-image:url(images/slices02.gif);

This background shows up fine in IE, but does not appear in FF. Can't even get a background
color to show up. If I add overflow:hidden to the #main element, the background shows, but the
top portion of the sidebars then disappear since I am pulling them up with a negative margin.

Can anyone see a solution? Thanks so much in advance!
phatmommy is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 02-23-2008, 10:10 AM Re: Background image not showing in FF, fine in IE
Experienced Talker

Posts: 47
Name: Bruce
You need quotes around the url within the parentheses. But I just tested that and it still works in the most current version of IE and Firefox even though it's incorrect. So hopefully someone will look at your code for you soon if you still haven't figured it out. I don't have time to right now, sorry.


Last edited by SillyWilly : 02-23-2008 at 10:21 AM.
SillyWilly is offline
Reply With Quote
View Public Profile
 
Old 02-23-2008, 10:25 AM Re: Background image not showing in FF, fine in IE
LadynRed's Avatar
Super Moderator

Posts: 6,553
Location: Tennessee
Quote:
You need quotes around the url within the parentheses.
No, you don't, in fact, it's not recommended.

The reason why you're not seeing anything 'in' #main is because it's not CONTAINING anything. You have floated elements inside #main - but you have not CLEARED those floats - so #main is 'collapsed'.

Here's info on clearing floats:
http://css-discuss.incutio.com/?page=ClearingSpace

Once you clear the float, #main will 'contain' everything inside it and you'll see your background.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-23-2008, 02:40 PM Re: Background image not showing in FF, fine in IE
Junior Talker

Posts: 2
Name: Shannon
Thanks so much Web Goddess!
phatmommy is offline
Reply With Quote
View Public Profile
 
Old 02-23-2008, 10:27 PM Re: Background image not showing in FF, fine in IE
Experienced Talker

Posts: 47
Name: Bruce
Hmmm.. I never knew you shouldn't use quotation marks around the url within the parentheses. Thanks for the info. I looked it up and the quotation marks cause a problem in IE Mac. Thanks again.
SillyWilly is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Background image not showing in FF, fine in IE
 

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.12733 seconds with 12 queries