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
How can you Make your Background image fill in the entire browser
Old 03-29-2008, 07:27 PM How can you Make your Background image fill in the entire browser
Experienced Talker

Posts: 40
Name: Abbas
Trades: 0
I have been wondering about this for a while now, how can you make your background image fill in the entire browser?
Abbas22 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-29-2008, 07:28 PM Re: How can you Make your Background image fill in the entire browser
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Specifiy a background on the <body> element.
__________________
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 03-29-2008, 07:31 PM Re: How can you Make your Background image fill in the entire browser
Experienced Talker

Posts: 40
Name: Abbas
Trades: 0
I have done that but the image doesn't fill in the browser in every computer
Abbas22 is offline
Reply With Quote
View Public Profile
 
Old 03-29-2008, 07:32 PM Re: How can you Make your Background image fill in the entire browser
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
Will you post an example page or your code??
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 03-29-2008, 07:35 PM Re: How can you Make your Background image fill in the entire browser
Experienced Talker

Posts: 40
Name: Abbas
Trades: 0
Here is my website http://cmovy.com

The background looks fine on my computer but when I go on my laptop there are white spaces all around the image


body {
margin: 0;
padding: 0;
background: url(images/background2.jpg) center center fixed;
text-align: justify;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size: 11px;
color: #fff;
}
Abbas22 is offline
Reply With Quote
View Public Profile
 
Old 03-29-2008, 07:44 PM Re: How can you Make your Background image fill in the entire browser
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
I can't get that same error to show up on my computer. What browser are you using on your laptop??

To get you started, you might try to remove the "center center fixed" part of your background
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 03-29-2008, 07:53 PM Re: How can you Make your Background image fill in the entire browser
Experienced Talker

Posts: 40
Name: Abbas
Trades: 0
It looks the same in IE7 and Firefox - when removed the parts that you said the white parts got filled in with little pieces of the background so basically the bg was repeated
Abbas22 is offline
Reply With Quote
View Public Profile
 
Old 03-29-2008, 08:04 PM Re: How can you Make your Background image fill in the entire browser
Experienced Talker

Posts: 40
Name: Abbas
Trades: 0
I guess I could just make the image 2200px by 1050px
Abbas22 is offline
Reply With Quote
View Public Profile
 
Old 03-30-2008, 11:29 AM Re: How can you Make your Background image fill in the entire browser
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
That would be one huge image and tax download times. If you want an image to fill the window, it has to be tileable.
__________________
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 03-30-2008, 04:40 PM Re: How can you Make your Background image fill in the entire browser
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Background images are not re sizable like the ones placed with <img> tags...
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 03-31-2008, 07:25 AM Re: How can you Make your Background image fill in the entire browser
vectorialpx's Avatar
Extreme Talker

Posts: 241
Name: octavian
Location: Bucharest
Trades: 0
you cannot have a "image fill in the entire browser" for one big reasons: you cannot know the user resolution so, you cannot how to resize the image. You can use some javaScript but it does not help you. My recommendation: use an image [at the center] that has a gradient and you'll give the fullScreen illusion with a fade.

If you want to use JS it's not so complicate but some browsers have a different display zone of the page and you cannot know this too... so, center and gradient or... make a nice border and put a bg, like me
__________________
you can
Please login or register to view this content. Registration is FREE
vectorialpx is offline
Reply With Quote
View Public Profile Visit vectorialpx's homepage!
 
Reply     « Reply to How can you Make your Background image fill in the entire browser
 

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