DomsAdmin Posted March 13, 2012 Share Posted March 13, 2012 Good day all newbies and pros! The problem I'm having is when I set the center column background color property, the color shows up on my homepage which I don't want. I'm trying to have a background color (done with the css color property) show up behind my website's content on all pages except the homepage. How can this be accomplished? Link to comment Share on other sites More sharing options...
CartExpert.net Posted March 13, 2012 Share Posted March 13, 2012 Hello, set up a new style definition for : #index #center_column { background: /*PUT STYLE HERE*/ } Link to comment Share on other sites More sharing options...
DomsAdmin Posted March 14, 2012 Author Share Posted March 14, 2012 Thank you for your input! The style definition: 'body#index #center_column' already exist. So I added what's in red. body#index #center_column {width:406px;float:left;margin:0 0 20px 0;background:#555555;} Now when I did this the background color now only shows up on my homepage and nothing else. Any suggestions on what can be done to make the background color show up on every page except the homepage? Link to comment Share on other sites More sharing options...
CartExpert.net Posted March 14, 2012 Share Posted March 14, 2012 Yes, that style definition means: put red background for the DIV with id 'center_colum', which is located in the BODY with the id 'index'. You need to set up the style for the other pages too. E.g. #center_column { background: #FF0000; } #index #center_column { background: #FFCC33; } Link to comment Share on other sites More sharing options...
DomsAdmin Posted March 15, 2012 Author Share Posted March 15, 2012 Thanks...I'm trying to follow your input. The background color is still showing up on my homepage when following the instructions from above. I noticed that putting the background color in the id "#center_column" it places the background color on all the pages. When I put the background color on the id body#index #center_column it places the background color on the homepage only. How can I put the background color on all the pages except the homepage? Or is there some code that could be added somewhere that will skip the background color from being called for the homepage? Link to comment Share on other sites More sharing options...
CartExpert.net Posted March 15, 2012 Share Posted March 15, 2012 #index #center_column { background: none; } #center_column { background: #FF0000 /*OR OTHER COLOR*/; } Link to comment Share on other sites More sharing options...
DomsAdmin Posted March 15, 2012 Author Share Posted March 15, 2012 Thanks so much Bellnin13. This issue has been solved!!! You are very intuitive! Very Good Day! Link to comment Share on other sites More sharing options...
CartExpert.net Posted March 15, 2012 Share Posted March 15, 2012 Thanks so much Bellnin13. This issue has been solved!!! You are very intuitive! Very Good Day! Please mark the topic as [sOLVED] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now