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
White area instead of background-image
Old 11-30-2008, 09:55 PM White area instead of background-image
Madman340's Avatar
Web Designer

Posts: 569
Name: Jared
Location: Florida
Trades: 1
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
 
 
Register now for full access!
Old 11-30-2008, 11:20 PM Re: White area instead of background-image
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 8,936
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
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


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


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
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Just another case of IE getting it wrong.

clear the floats after #footer
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
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
Defies a Status

Posts: 10,016
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 !!

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 12-01-2008, 04:10 PM Re: White area instead of background-image
Madman340's Avatar
Web Designer

Posts: 569
Name: Jared
Location: Florida
Trades: 1
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
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
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!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
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
Defies a Status

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


Last edited by LadynRed; 12-02-2008 at 10:48 AM..
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 12-02-2008, 09:41 PM Re: White area instead of background-image
Madman340's Avatar
Web Designer

Posts: 569
Name: Jared
Location: Florida
Trades: 1
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.55263 seconds with 12 queries