I want to float two divs in a container-div in IE7. The first div in the container should float to left, the second to right. Actually the two divs are floated to left in my css config.
Here is my css:
.container {float:left; width:100%; height:30px;}
.left {float:left; width:auto; height:30px;}
.right {float:right; width: auto; height:30px}
Here is my HTML
<div class="container">
<div class="left">To the Left!</div>
<div class="right">To the Right!</div>
</div>
This should be the Result: (dots are the spaces here ;) )
#-#-#-#-#-#-#-#-#-#-#-#-#-# Container -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#
#-#-
#-#- |~~~~~~~~~~~~|. . . . . . . . . . . . . . . .|~~~~~~~~~~~~~|
#-#- |To The Left | . . . . . . . . . . . . . . .|To the Right |
#-#- |~~~~~~~~~~~~|. . . . . . . . . . . . . . . .|~~~~~~~~~~~~~|
#-#-
#-#-#-#-#-#-#-#-#-#-#-#--#-#-#-#-#-#-#-#-#-#-#-#--#-#-#-#-#-#-#-#-#-#-#-