CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 29th, 2012, 01:19 AM
mark5225 mark5225 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 3 mark5225 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 42 sec
Reputation Power: 0
CSS Background

I have been banging my head this one and cannot figure it out.

On the home page I would like the content area to have a back background. On the homepage only this is broken up by boxes displaying content. I cannot find where or how to make the changes so the entire content area has a black background.

Site nmclippers (dot) com

css page nmclippers.com/wp-content/themes/hero/style.css

Any help is appreciated, thanks

Reply With Quote
  #2  
Old November 2nd, 2012, 09:12 AM
tech0925 tech0925 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2011
Posts: 306 tech0925 User rank is Corporal (100 - 500 Reputation Level)tech0925 User rank is Corporal (100 - 500 Reputation Level)tech0925 User rank is Corporal (100 - 500 Reputation Level)tech0925 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 18 h 23 m 55 sec
Reputation Power: 5
Hello,

this can be easily done by adding another div to contain the content area. For example:

Add
<div id="contentWrapper"> right above <div id="home-container">
and then add the closing div tag just above <div id="footer"> like so.

<div id="contentWrapper">
<div id="home-container">

</div>
<div id="footer">

Then simply style it with CSS. The contentWrapper div will contain all the content in the middle and will allow you to easily add the background color and etc...


Hope this helps
Comments on this post
mark5225 agrees: Helped solve my problem, thanks.

Reply With Quote
  #3  
Old November 2nd, 2012, 01:29 PM
mark5225 mark5225 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 3 mark5225 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 42 sec
Reputation Power: 0
Thanks tech, worked great. Such a simple answer that did the job.

However, I have a div clear tag that is creating a space just above the footer where the background image comes through. I tried removing the div clear but then the boxes above allow the background image to show in a small space. I tried to add a background: black to the div clear but didn't do anything.

Only take a look if you have time, but thanks a million for the answer thus far.

Reply With Quote
  #4  
Old November 2nd, 2012, 02:21 PM
tech0925 tech0925 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2011
Posts: 306 tech0925 User rank is Corporal (100 - 500 Reputation Level)tech0925 User rank is Corporal (100 - 500 Reputation Level)tech0925 User rank is Corporal (100 - 500 Reputation Level)tech0925 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 18 h 23 m 55 sec
Reputation Power: 5
Thanks! Glad to help

Change This:


Code:
#wrapper {
    margin: 30px auto;
    position: relative;
}


TO this:


Code:
#wrapper {
    margin: 30px auto 0;
    position: relative;
}

Reply With Quote
  #5  
Old November 2nd, 2012, 02:25 PM
mark5225 mark5225 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Posts: 3 mark5225 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 42 sec
Reputation Power: 0
That did it!

I never would have figured that out. Hours of me tweaking code by trial and error you solved in minutes

Thank you again.

Now back to trying to figure out PHP ... lol

Reply With Quote
  #6  
Old November 2nd, 2012, 02:30 PM
tech0925 tech0925 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2011
Posts: 306 tech0925 User rank is Corporal (100 - 500 Reputation Level)tech0925 User rank is Corporal (100 - 500 Reputation Level)tech0925 User rank is Corporal (100 - 500 Reputation Level)tech0925 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 18 h 23 m 55 sec
Reputation Power: 5
LOL,

no problem buddy

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS Background

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap