Jump to content

[SOLVED] Float positioning..


zeeshan_haider000

Recommended Posts

Hi,

When i have two div id items, div#1 is floated to the right while div#2 to the left, the problem is that when i input a new div after the above divs, the new div shows up underneath the above divs? i haven't used 'position' param for any of the above divs...

here is the code:

#headright
{
padding: 10px;
float: right;
width: 300px;
height: 400px;
outline: solid #0000CC;
outline-width: 1px;
background: inherit;
overflow: hidden;
margin: 0 auto;
}

#headleft
{
padding: 10px;
float: left;
width: 590px;
height: 400px;
outline: solid #666666;
outline-width: 1px;
background: inherit;
margin: 0 auto;
}

#footer
{
width: auto;
text-align: center;
vertical-align: middle;
background: #000000;
color: #CCCCCC;
font-size: 12px;
text-transform: capitalize;
margin: 10px auto auto auto;
padding: 10px;
}

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.