PDA

View Full Version : div help...



scorpio023
20 Oct 2010, 05:31 AM
Hey guys
First of all thanks for your support
I'am a beginner in all the site building idea. I had to do a site for my theater business.
The link http://www.theater-prospect.com/ -this is my first site (-:
I have one problem that I didn't solve.
My div layers, if I resize the window, stay in the same spot .that a problem.
I need somehow to attach the div layers to the background so when I resize the window they will resize too and move with the resize flow.
Its really important to me so any help will be grateful.

forumfish
20 Oct 2010, 03:33 PM
You need to contain the content in a wrapper, not just the body tag.

I.e.

<body>
<div id="container">
<div class="menu">menu items</div>
<div class="content">Content Area</div>

<div style="clear:both;"></div>
</div>
</body>

****** CSS ******
body {
padding: 0;
margin: 0;
}
#container {
width: 960px;
margin: 0 auto;
padding: 0;
}
.menu {
float: left;
width: 200px;
}
.content {
margin-left: 210px;
}