Adham
Adham

Reputation: 64844

How to fit two divs side by side horizontally?

How to sit two divs side by side horizontally using css, where the direction of the container DIV is from right to left ?

Upvotes: 7

Views: 4235

Answers (2)

yuli chika
yuli chika

Reputation: 9221

<div style="width:960px;overflow:hidden;">
  <div style="float:right;width:600px;overflow:hidden;">
     //right DIV
  </div>
  <div style="float:right;width:360px;overflow:hidden;">
     //left DIV
  </div>
</div>

Upvotes: 2

Dennis Traub
Dennis Traub

Reputation: 51634

<div style="float:right;">
    Right div
</div>
<div>
    Left div
</div>

Upvotes: 6

Related Questions