What are your CSS (or HTML) tricks that you commonly use day to day that work in all browsers
The two best examples I can think of are
Using inline-block effectively in all browsers:
div{
display:inline-block;
*display:inline;
zoom:1;
}
Using a large value for text-indent:
a{
text-indent: -9999px;
text-transform: capitalize; /* Makes it work in IE7, don't ask me why */
}
Posted Nov 7, 2013, 12:05 AM UTC
Sticking to validated code doing what it was designed for.