Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



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

Posts: 2
Name: Shannon
Trades: 0
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
 
 
Register now for full access!
Old 02-23-2008, 11:10 AM Re: Background image not showing in FF, fine in IE
Skilled Talker

Posts: 52
Name: Bruce
Trades: 0
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 11:21 AM..
SillyWilly is offline
Reply With Quote
View Public Profile
 
Old 02-23-2008, 11:25 AM Re: Background image not showing in FF, fine in IE
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
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 !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-23-2008, 03:40 PM Re: Background image not showing in FF, fine in IE
Junior Talker

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

Posts: 52
Name: Bruce
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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