Using Twitter Bootstrap 2? Want it to look half useable in IE6? Use these quick wins…
After seeing how amazing Twitter Bootstrap has become, i decided to write in some IE6 compatibility fixes. If i have any hope of getting to use it for a project at work then it must be IE6 friendly (bloody educational institutions!)
Some very non magical CSS:
/* IE6 'Compatability' fixes */
body {background:#ffffff;background-image:none;padding:0;}
/* Nav Fixes */
.navbar {background:#333333;}
.nav-collapse {width:auto;}
.nav li {display:inline;}
.nav li a {padding:10px;display:block;width:auto;float:left;color:#cccccc;}
.nav li a:hover {color:#ffffff;}
.nav-pills li a {color:#08C;}
.nav-pills li a:hover {color:#005580;}
/* Grid Fixes */
.row {margin:0;}
.span1, .span2, .span3, .span4, .span5, .span6, .span7, .span8, .span9, .span10, .span11, .span12 {float:left;margin:0 30px 0 0;}
.last-child {margin-right:0;}
And that all important bit of jQuery to ladle on last-child support:
$('.row div[class^="span"]:last-child').addClass('last-child');
This is by no means a finished solution, but it deals with some critical layout issues with the navigation and grid layout.
Once i get some time i’ll work on it properly and will work out how to get it onto GitHub for others to fork/contribute to!
-
Dave Ferguson
-
http://www.jonathonjoyce.co.uk/ Jonathon Joyce
-
David Boyer
-
http://www.jonathonjoyce.co.uk/ Jonathon Joyce
-
http://www.learningtitanium.com Sharry
-
http://www.learningtitanium.com Sharry
-
Cemen
-
http://www.jonathonjoyce.co.uk/ Jonathon Joyce
-
Ddouble


