The above will only work in IE8+. If you need to support IE7 then just re-instate the floated rules and let IE7 have the non equal floated approach instead.
Use conditional comments to target ie7 or use the ie7 *+html hack:
*+html .col1,
*+html .col2,
*+html .col3 {
float:left
}
*+html .fake_float{display:block}
/*etc.. and so on for any properties that were changed in the original rules.... */
Thanks it works, but i need to make it responsive and those border-spacing:–% does not work. please tell if any other method is there to do so( i had done before that method in which inner floating divs are made of same length,but i don’t remember that )
btw thanks for diving :find: into my css code
Percentages can’t be used on border-spacing so the only way to space them apart is to use pixels. However that wont really affect the responsiveness as the cells will shrink and grow as required but just that the space between them will not grow (which I find more appealing anyway).
There are a couple of other alternatives but they are more risky and more complicated.
1)You can use the massive padding bottom and massive negative margin technique where the three floats are contained with a parent that has overflow:hidden applied and then the columns will equalise. The downside is that any links in that section reached by a fragment identifier will break the page as it will scroll the content inside and become unreachable. If that’s not an issue for you then that method is ok in small doses.
hey please check http://moneyzzsharma.comze.com/. 3 columns are made to be float left and the outer one is set to overflow:hidden but the length is still not same (:
Thanks a ton paul for the discussion. i finally too realized that table-cell approach is best for it. thanks for the discussion sitepoint is glad that you are here