Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-19-2012, 02:45 PM   PM User | #1
DavidRobertsons
New to the CF scene

 
Join Date: Sep 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
DavidRobertsons is an unknown quantity at this point
CSS background across entire screen?

Hi guys!
I'm working on a website for a buddy of mine. I have a few widgets at the bottom of the screen that I would like to have a background image that repeats the full length of the screen even though the content area is only 960 pixels.

What CSS snippet could I use to achieve this?

David Robertson

http://www.presidentialpinkslip.com is the domain
DavidRobertsons is offline   Reply With Quote
Old 09-19-2012, 06:18 PM   PM User | #2
TheGameGuy69
New Coder

 
Join Date: Sep 2012
Location: NWO Canada
Posts: 12
Thanks: 0
Thanked 2 Times in 2 Posts
TheGameGuy69 is an unknown quantity at this point
Post

you want to split the background image up into the boxes? or you want the background image behind the boxes(widgets)?
TheGameGuy69 is offline   Reply With Quote
Old 09-19-2012, 06:30 PM   PM User | #3
TheGameGuy69
New Coder

 
Join Date: Sep 2012
Location: NWO Canada
Posts: 12
Thanks: 0
Thanked 2 Times in 2 Posts
TheGameGuy69 is an unknown quantity at this point
just stretch the background out onto a div into the current div:

Code:
#mainstay2
{
    width: 100%;
    height: 100%;
    background-image: coolbackground.jpg;
    background-color: Blue;
    border-radius: 6px;
    border-bottom-left-radius: 4px;
    font: 16px Tahoma, Arial;
    z-index: -2;
}

Last edited by TheGameGuy69; 09-19-2012 at 06:35 PM..
TheGameGuy69 is offline   Reply With Quote
Old 09-19-2012, 08:29 PM   PM User | #4
TheGameGuy69
New Coder

 
Join Date: Sep 2012
Location: NWO Canada
Posts: 12
Thanks: 0
Thanked 2 Times in 2 Posts
TheGameGuy69 is an unknown quantity at this point
Post

sorry here is a better example:
Code:
anything{
background-image:url(newBG.jpg);
background-repeat:no-repeat;
background-position:center top;
/* margin-bottom:30px; */
color:#000000; 
font-family:tahoma, sans-serif; 
font-size:18px;
background-color:#ffffff; 
}
TheGameGuy69 is offline   Reply With Quote
Old 09-19-2012, 10:35 PM   PM User | #5
DavidRobertsons
New to the CF scene

 
Join Date: Sep 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
DavidRobertsons is an unknown quantity at this point
Quote:
Originally Posted by TheGameGuy69 View Post
you want to split the background image up into the boxes? or you want the background image behind the boxes(widgets)?
I'm wanting the blue background you see at the bottom of the page with the calendar and links to be repeated horizontally across the entire screen. Since I want the background to go outside the boxes (widgets), it sounds like I want it behind the boxes. Truthfully, I'm not exactly sure what I need, I just know what I need it to look like.

Last edited by DavidRobertsons; 09-20-2012 at 11:06 AM..
DavidRobertsons is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 06:52 PM.


Advertisement
Log in to turn off these ads.