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 firefox
Old 05-30-2008, 03:09 PM background-image not showing in firefox
Extreme Talker

Posts: 177
Trades: 0
I searched all day yesterday for this answer but didn't find the solution, which is why I'm posting it as a new thread. for a div, I have bacground-image:url(); set, and it shows up in IE but not in FF. I noticed that if I have a set height (ie 500px), the background will show, but if I have height:100% or, no height specified, it doesn't show up. Unfortunatley the height of the div is dynamic, anyone know how to get firefox to set the background image?


Last edited by kbfirebreather; 06-01-2008 at 02:04 PM..
kbfirebreather is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-30-2008, 03:23 PM Re: background-image not showing in firefox
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
Check out the post here: http://www.webmaster-talk.com/css-fo...l-browser.html

If you do not have a height set on a div, and you have nothing in the div, it will not show up because the div is "empty".

You can set a min-height for that div, but min-heights don't work in IE6, so you would have to make a separate stylesheet for IE6.

**EDIT**
I just noticed something else after looking at your code.
First of all, you have your background on "photos_search_container" set to NOT repeat.
Also,
You need to clear your floats before the end of "album_container"

If you do those 2 things, you shouldn't have to worry about 100% height or min-heights or separate stylesheets!
__________________

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

Last edited by angele803; 05-30-2008 at 03:36 PM..
angele803 is offline
Reply With Quote
View Public Profile
 
Old 05-30-2008, 03:31 PM Re: background-image not showing in firefox
Extreme Talker

Posts: 177
Trades: 0
I set a min-height, but that's the only height it's set at. Even though there's more div's inside the container div( that has the min-height) it stays at 100px, instead of expanding. Any idea why that would be?
kbfirebreather is offline
Reply With Quote
View Public Profile
 
Old 05-30-2008, 03:37 PM Re: background-image not showing in firefox
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
I didn't look at your code very closely before I first replied. See my edit to my original post, and it should help you out.
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to background-image not showing in firefox
 

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