I don't know how to better express my title so I'll explain here. I got a HTML/CSS page with 3 divs.
The first one, div.presentation
, has no floating rule. I want to make menus at its right.
So I got two others divs, div.login
and div.categories
. They both have float: right;
and clear: both;
.
I want something like that :
-------------------------------------- ------------------
|div.presentation | |div.login |
| | | |
| | | |
| | | |
| | ------------------
| |
| | ------------------
| | |div.categories |
| | | |
| | | |
| | | |
-------------------------------------- ------------------
But div.login
and div.categories
are aside each other. Floating rules worked perfectly when div.categories
did not exist.
I have what I want when I put a <div style="height:100px"></div>
between div.login
and div.categories
, but I'm sure we can do better. It's too based on luck.
Those 3 divs are display:inline-block
.
Any idea ? Thanks a lot.