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 12-10-2012, 11:00 PM   PM User | #1
AlexG
New Coder

 
Join Date: Mar 2012
Posts: 26
Thanks: 1
Thanked 0 Times in 0 Posts
AlexG is an unknown quantity at this point
AlexG

How can I get the background on http://outnout.net/wordpress/ be centered and actually be the background of the whole site using css. Thank you for all your help!!!!!
AlexG is offline   Reply With Quote
Old 12-10-2012, 11:17 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello AlexG,
See what this does for your background -
Code:
body {
  background: url("http://outnout.net/wordpress/wp-content/uploads/2012/12/backgroudnrays.jpg") fixed center; 
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;; 
}
See CSS Background position property here.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 12-11-2012, 03:23 AM   PM User | #3
AlexG
New Coder

 
Join Date: Mar 2012
Posts: 26
Thanks: 1
Thanked 0 Times in 0 Posts
AlexG is an unknown quantity at this point
That did not work. It just completely removed it
AlexG is offline   Reply With Quote
Old 12-11-2012, 09:01 AM   PM User | #4
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Quote:
Originally Posted by AlexG View Post
That did not work. It just completely removed it
Probably because you used background-image:. Notice in my example it only says background:
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 12-11-2012, 09:05 AM   PM User | #5
backa
New Coder

 
Join Date: Oct 2012
Posts: 44
Thanks: 7
Thanked 3 Times in 3 Posts
backa is an unknown quantity at this point
check if it's a typo in 'backgroudnrays.jpg'?
backa is offline   Reply With Quote
Old 12-11-2012, 06:24 PM   PM User | #6
AlexG
New Coder

 
Join Date: Mar 2012
Posts: 26
Thanks: 1
Thanked 0 Times in 0 Posts
AlexG is an unknown quantity at this point
Quote:
Originally Posted by Excavator View Post
Probably because you used background-image:. Notice in my example it only says background:
That made it work. Thank you very much. Now how do I get it to go into the whole site (the header and footer)?
AlexG is offline   Reply With Quote
Old 12-11-2012, 07:23 PM   PM User | #7
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Quote:
Originally Posted by AlexG View Post
That made it work. Thank you very much. Now how do I get it to go into the whole site (the header and footer)?
Remove any images/colors you have covering backgroundrays.jpg -
Code:
#header_outer {
    background: none repeat scroll 0 0 #00C5CC;
}
#bottom {
    background: url("1-default/footerbg.png") repeat-x scroll left top #00C5CC;
}
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 12-11-2012, 08:47 PM   PM User | #8
AlexG
New Coder

 
Join Date: Mar 2012
Posts: 26
Thanks: 1
Thanked 0 Times in 0 Posts
AlexG is an unknown quantity at this point
Quote:
Originally Posted by Excavator View Post
Remove any images/colors you have covering backgroundrays.jpg -
Code:
#header_outer {
    background: none repeat scroll 0 0 #00C5CC;
}
#bottom {
    background: url("1-default/footerbg.png") repeat-x scroll left top #00C5CC;
}
Is this the code to fix it or is this just the code you got off the site?
AlexG is offline   Reply With Quote
Old 12-11-2012, 10:46 PM   PM User | #9
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
That is your CSS that loads the images in your header and footer that cover up the backgroundrays.jpg.

Remove those lines and you'll see the background behind those images.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 12-11-2012, 11:17 PM   PM User | #10
AlexG
New Coder

 
Join Date: Mar 2012
Posts: 26
Thanks: 1
Thanked 0 Times in 0 Posts
AlexG is an unknown quantity at this point
Quote:
Originally Posted by Excavator View Post
That is your CSS that loads the images in your header and footer that cover up the backgroundrays.jpg.

Remove those lines and you'll see the background behind those images.
Worked perfectly. Thank you so much
AlexG 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 01:34 AM.


Advertisement
Log in to turn off these ads.