Reply
White area instead of background-image
Old 11-30-2008, 09:55 PM White area instead of background-image
Ultra Talker

Posts: 295
Trades: 0
Alright, I have a DIV wrap around the entire design, which has a background-image: blah attribute. Now when you look at this in Firefox 3, it doesn't show that, but a white blank area.

http://www.cheapcss.com/blog/

If you look at it in IE 7, you will see it how it is meant to be seen.


edit:

adding these to the DIV wrap don't work:

height: auto;
height: inherit;

Although, if I use a definite value; such as "height: 1200px" it does work.
but since this is for a wordpress theme, it won't work right.

Last edited by Madman340; 11-30-2008 at 10:40 PM..
Madman340 is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 11-30-2008, 11:20 PM Re: White area instead of background-image
serandfae's Avatar
WHO'S YO' DADDY?!?

Posts: 7,238
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
Put the link to the background image in an inline style for that div.

such as: <div id="wrap" style="background-image: url('images/yourimage.jpg')">

For whatever reason, putting it in the CSS file doesn't seem to cut it. Must be some weird bug; hopefully it will be corrected in updates. Telling the image to repeat in the CSS file, curiously, is not a problem.

Edit: Has anyone else experienced this? Usually, the cause is an improper path, such as if the CSS file is in a folder, and ../ isn't put in the path name when the URL is called for, or the quotes or semicolon are left out. But this happened to me as well, and calling for the background image locally was the fix. Very unusual for FF; generally you code for FF and fix for IE.

tim
__________________
Springs hop eternal in the hearts of the eccentric....
E-GADS! (Evil Genius' Art and Design Studio) Mwah hah hah haah!!!

Last edited by serandfae; 11-30-2008 at 11:54 PM..
serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 12-01-2008, 05:06 AM Re: White area instead of background-image
chrishirst's Avatar
Super Moderator

Posts: 22,260
Location: Blackpool. UK
Trades: 0
Just another case of IE getting it wrong.

clear the floats after #footer
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-01-2008, 03:51 PM Re: White area instead of background-image
LadynRed's Avatar
Super Moderator

Posts: 8,823
Location: Tennessee
Trades: 0
Agreed. Easy fix - add overflow: auto to #wrap - all floats inside will be cleared and the #wrap will actually, finally, contain what's inside it.
__________________
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 online now
Reply With Quote
View Public Profile
 
Old 12-01-2008, 04:10 PM Re: White area instead of background-image
Ultra Talker

Posts: 295
Trades: 0
Awesome, I can always rely on you guys when I'm stuck!

edit: uh oh, I tried both adding clear: both to #footer, and adding overflow: auto to #wrap, but it's still producing the same problem.

serandfae's method didn't work either... Although it was strange, it works when I push my hotkey in dreamweaver for Firefox, but when I upload it to my server, it shows the white area.

edit2: alright, I figured out why it was doing that, I uploaded it to the wrong server directory XD

but only serandfae's method worked, I was uploading correctly when trying both of your methods.

Last edited by Madman340; 12-01-2008 at 04:25 PM..
Madman340 is offline
Reply With Quote
View Public Profile
 
Old 12-02-2008, 05:33 AM Re: White area instead of background-image
chrishirst's Avatar
Super Moderator

Posts: 22,260
Location: Blackpool. UK
Trades: 0
Quote:
I tried both adding clear: both to #footer
You don't add clear:both TO the footer, you add a block element AFTER #footer with a clear:both rule. Use an empty <div> or a styled <br>
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-02-2008, 10:47 AM Re: White area instead of background-image
LadynRed's Avatar
Super Moderator

Posts: 8,823
Location: Tennessee
Trades: 0
The overflow:auto worked when I tested it with Firebug ;)
__________________
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

Last edited by LadynRed; 12-02-2008 at 10:48 AM..
LadynRed is online now
Reply With Quote
View Public Profile
 
Old 12-02-2008, 09:41 PM Re: White area instead of background-image
Ultra Talker

Posts: 295
Trades: 0
Lol, alright, I'm just a newbie; I probably messed something up :P
Madman340 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to White area instead of background-image
 

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.17639 seconds with 13 queries