Francis
Francis

Reputation: 488

float : left and clear : right

I want to diplay three div like this:

[1]    
[2][3]

The three div have style: float: left
The div 1 have: clear: right

Ok I just to put clear: left on div [2], but if this div is optional?

Upvotes: 0

Views: 261

Answers (2)

Mikey G
Mikey G

Reputation: 3491

Put float: left; on div 2 and 3. Thats it.

Get rid of the rest of your styles.

http://jsfiddle.net/mjgasner/hBrE7/

Upvotes: 3

Mikael Härsjö
Mikael Härsjö

Reputation: 1036

Try removing float: left from div 1

Upvotes: 2

Related Questions