Evening,
I'm floating all sorts of stuff again, about to throw my brain out the window.
Have a peek at the code below:
My HTML:
<div id="header">
</div>
<div id="wrapper">
<div id="menu">
<p>Tasty menu!</p>
<p>Lovely menu!</p>
</div>
<div id="content">
<p>Random text..la la la...</p>
<p>Random text..la la la...</p>
<p>Random text..la la la...</p>
</div>
</div>
My CSS:
body
{
padding: 0;
margin: 0;
}
#wrapper
{
width: 800px;
border: 2px solid rgb(32,28,29);
margin-left:auto;
margin-right:auto;
}
#header
{
background: url(images/header.jpg) top no-repeat;
min-height: 220px;
margin-left:auto;
margin-right:auto;
}
#menu
{
float: left;
}
#content
{
float: left;
}
All is well, but when I float the #menu and #content within the #wrapper, the border of the wrapper disappears because the #menu and #content shunt themselves out of the box...
I've no idea what's going on. I'm baffled!
I'm floating all sorts of stuff again, about to throw my brain out the window.
Have a peek at the code below:
My HTML:
<div id="header">
</div>
<div id="wrapper">
<div id="menu">
<p>Tasty menu!</p>
<p>Lovely menu!</p>
</div>
<div id="content">
<p>Random text..la la la...</p>
<p>Random text..la la la...</p>
<p>Random text..la la la...</p>
</div>
</div>
My CSS:
body
{
padding: 0;
margin: 0;
}
#wrapper
{
width: 800px;
border: 2px solid rgb(32,28,29);
margin-left:auto;
margin-right:auto;
}
#header
{
background: url(images/header.jpg) top no-repeat;
min-height: 220px;
margin-left:auto;
margin-right:auto;
}
#menu
{
float: left;
}
#content
{
float: left;
}
All is well, but when I float the #menu and #content within the #wrapper, the border of the wrapper disappears because the #menu and #content shunt themselves out of the box...
I've no idea what's going on. I'm baffled!