Link to home
Start Free TrialLog in
Avatar of jdana
jdanaFlag for United States of America

asked on

CSS - clear: right not working as I would expect.

Take a look at the following page:

http://jaginc.com/dev/indexClearSample.html

Three DIVs are set with float: left - #leftSidebar, #main, and #rightSidebar.  #main is also set with clear: right.  So why is #rightSidebar still on the right?  Shouldn't it drop below?
Clear-Right.png
ASKER CERTIFIED SOLUTION
Avatar of R-Byter
R-Byter
Flag of Serbia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jdana

ASKER

That did the trick.  I'm trying to get a better handle on the CLEAR property.  The fact that #rightSidebar {clear: left;} works makes sense, but I still don't understand why #main {clear: right;} doesn't work.   Can someone explain?
Avatar of anshuverma
anshuverma

Can you please paste your code, it will be quite easy for us to see where is the problem in your code.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jdana

ASKER

R-Byter,

Makes good sense.  Thanks.

j
what's confusing with this is does clear: right mean it clears everything to the right or does it mean that it clears everything that is float: right?