Two div elements are structured like this:
<div class="pdetails">
<div class="contact_details">
text
</div>
<div class="clear"></div>
<div id="contact_area_form_" class="tform_wrapper">
text
</div>
</div>
The parent div is pdetails and it contains two child divs (contact_details, tform_wrapper). The issue I'm facing is that the contact_details div appears at the top while the tform_wrapper div displays at the bottom.
How can I align these two divs on the same line?
CSS code:
.tform_wrapper {
float: left !important;
padding-top: 10px;
width: 510px;
}
.pdetails {
color: #000000;
font-family: tahoma;
font-size: 12px;
line-height: 18px;
margin-top: 20px;
min-height: 360px;
text-align: justify;
}
.contact_details {
float: right;
}