Hi
I think this is a quick and easy one, just that I can't get it to work.
At the moment I have my main web page in a <div tag> as follows:
My css for the container ID is as follows:
The web page centers ok, but I want to add some colour to the spaces on the outside. I tried to add another div container before this main div (for the left side) and made it a different colour, but it filled the white background tin the main page with that colour.
e.g
straight after the opening body tag i have:
<div id="leftside">
</div>
then in my css style in head tags, i add a new style:
#leftside{background-color:#993333}
Then the whole white background on the whole screen is filled with that colour.
How can I separate the 3 main areas on the screen?
Thanks
I think this is a quick and easy one, just that I can't get it to work.
At the moment I have my main web page in a <div tag> as follows:
Code:
<body>
<div id="container">
<table...........
WEB PAGE
</table>
</div>
</body>
My css for the container ID is as follows:
Code:
body {
text-align: center;
}
#container {
margin: 0 auto;
width: xxxpx;
text-align: left;
}
The web page centers ok, but I want to add some colour to the spaces on the outside. I tried to add another div container before this main div (for the left side) and made it a different colour, but it filled the white background tin the main page with that colour.
e.g
straight after the opening body tag i have:
<div id="leftside">
</div>
then in my css style in head tags, i add a new style:
#leftside{background-color:#993333}
Then the whole white background on the whole screen is filled with that colour.
How can I separate the 3 main areas on the screen?
Thanks