View Full Version : [URGENT] How to adjust Background margin? HELP!

11-23-2012, 04:47 PM
I want to change my website's background and separate the background of text and main content area.I want the page of my website to remain white and to change the rest of the background but when I change the background then the whole background changes of everything.I want something like this website ourgemcodes.com (http://ourgemcodes.com).Please provide me all CSS code.

11-23-2012, 07:55 PM
for example if you have a div centered in the page, and you set your background (background meaning the body element) then it will also look like your div has the same background.

To fix, do this:

<title>your page</title>

<style type="text/css">
body {background:#fff;}
#content {background: #ff0000;}//any color you wish


<div id="content">
<!--put your content here-->