Cross Browser CSS Fixes, Tools, and Hacks
Blog » CSS/XHTML, Technology » Cross Browser CSS Fixes, Tools, and HacksCross Browser CSS Fixes, Tools, and Hacks
As designers and developers we are all responsible for the product we produce, and cross browser testing is a must in our line of work. Although the W3C statistics show about 7 browsers that people tend to use most, in my opinion, two of them are the most important and should be given special attention to perfecting (Firefox and Internet Explorer).
Below are some commonly used browsers, tools, solutions, and hacks to overcome your daily issues.
Commonly Used Browsers
- Firefox - (Download)
- Internet Explorer - (Download)
- Safari - (Download)
- Google Chrome - (Download)
- Opera - (Download)
Want to find more? Checkout Smashing Magazine’s article.
Cross Browsing Tools
Sometimes its not possible to have a running browser with multiple versions (example: IE7 + IE6 on Same PC) so its useful to have standalone browsers to help you debug and test. Here are some tools below that may be helpful for you.
Want to find more? Checkout Smashing Magazine’s article.
Great Articles For Your Everyday CSS Fix
- Using CSS to Fix Anything 20 Common Bugs and Fixes
- IE CSS Bugs That’ll Get You Every Time
- Solving 5 Common CSS Headaches
- Using Javascript to Fix 12 Common Browser Headaches
CSS Hacks
I hesitate sharing these hacks, because most beginners have tendencies to want to hack everything up, which leads to a nightmare in the long run. I have come a cross a few of them which I would like to share, but please use them wisely. With good XHTML/CSS structure, hacks are not needed. If all else fails, go ahead and check some of the options below.
IE Conditional Tags
<!--[if IE ]> <link href="iecss.css" rel="stylesheet" type="text/css"> <![endif]-->
Checkout Site Point’s Article on conditional tags for IE
IE 6 Hack
*html .classname {}
IE 6 ‘!important’ Hack
.classname {
float: left;
margin: 200px !important; /*--The !important; hack tells IE6 to skip this line.--*/
margin: 220px;
}
IE 7 Hack
*+html .classname {}
Safari Hack
html:lang(en)>body .classname {}
Opera 7 Hack
@media all and (min-width: 0px){
.classname {}
}
CSS Hack Resources
- Opera CSS Hack
- Google Chrome Hack
- http://www.stylegala.com/resources/css_hacks.htm
- http://www.centricle.com/ref/css/filters/
- http://www.sitepoint.com/article/browser-specific-css-hacks/
- http://www.w3schools.com/browsers/browsers_stats.asp
- http://www.webdevout.net/css-hacks
Conclusion
As you can see, testing and making your design work in all browsers can be a pain at times, but the more you get the hang of this the smoother your work flow will be. If you have any other solutions, tools, or tricks of your own, I would love to hear about it!
Related Posts
Tags: Browser, CSS Bugs, Downloads, hacks, tools
This entry was posted on Thursday, October 9th, 2008 at 8:36 am and is filed under CSS/XHTML, Technology. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.






Nice blog ! Thanks for great tutorial
Purfect tools I look for and hacks. Very nice thanks!
very nice tips, thank you!
this is for opera:
@media screen and (min-width: 10px){
.yourstyle {}
}
Thanks Dex, Ill add that to my list! Thanks!
thank u r information
it very useful
ur blog Is very nice
Here is another article with some slightly different hacks for Firefox, Opera and Safari.
[...] Cross Browser CSS Fixes, Tools, and Hacks [...]
[...]Cross Browser CSS Fixes, Tools, and Hacks[...]
Very good! I’ve been battling bugs for ages.
Hate IE… Why don’t they keep up with technology?
Cheers,
Alex
Really awesome. Thanks for the great information. This is what, I was waiting for…
Cascading Style Sheets (CSS) web design lessons
Css link Properties Attributes - examles
http://css-lessons.ucoz.com/link-css-examples-1.htm
http://css-lessons.ucoz.com/link-css-examples-2.htm