Jump to content

[SOLVED] Divs side by side.


ram4nd

Recommended Posts

My footer div goes behind menu and content divs.

 

Here is my code. I need menu and content side by side and header and footer 100% wide in the idless div.

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Blog</title>
    <style type="text/css">
        .base_divs
        {
            background-color: #669922;
            border: medium double #225511;
        }
    </style>
</head>
<body style="background-color: #556622;">
<div style="width:810px;margin:0 auto;">
    <div id="header" class="base_divs">Title</div>
    <div id="menu" style="float:left;width:25%;" class="base_divs">Menu</div>
    <div id="content" style="float:left;width:75%;" class="base_divs">Content</div>
    <div id="footer" class="base_divs">Footer</div>
</div>
</body>
</html>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.