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>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.