Jump to content

Recommended Posts

I have three DIV's. The first two I want to be beside eachother, and the last one I want to be directly below the first two.

 

I use float: left and float: right on the first two DIV's, which works to make them beside eachother, but the third is not being placed below them. It is being placed off to the right.

 

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/85693-div-problem/
Share on other sites

I know what the problem is now - I'm just not sure how to go about fixing it. A form is wrapping all three DIV's, and when I remove it they line up fine. There are inputs in the top two DIV's. Any ideas why the form is changing the formatting?

 

<form>
<div class="leftcheck"
</div>
<div class="rightcheck">
</div>
<div class="check">
</div>
</form>


.check {
border: solid 1px #000000;
float: none;
}

.leftcheck {
width: 259px;
float: left;
border: 1px solid #000000;
}

.rightcheck {
width: 259px;
float: right;
border: 1px solid #000000;
}

Link to comment
https://forums.phpfreaks.com/topic/85693-div-problem/#findComment-437350
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.