How To Avoid Wrapping In Css Float
I have a page with 2 columns side by side (defined both by float: left). My problem is, when I scale the browser to be smaller, the right column will be dropped below the left colu
Solution 1:
Alternatively if you want them to resize with the browser will need to define the width in percentages. So:
.div1 {
float:left;
width:49%;
background:red;
}
.div2 {
float:left;
width:49%;
background:orange;
}
Some people would use 50% here, I tend not to
Post a Comment for "How To Avoid Wrapping In Css Float"