admin |
07-24-2009 08:09 PM |
15+ CSS tips and tricks [LINK]
Some useful tips and tricks for mastering CSS is found at this site:
http://www.queness.com/post/402/15-css-tips-and-tricks
The one I want to study further is #10
Quote:
10. PNG Fix for IE6
Yes, this is the best thing ever to fix ie6 annoying short coming (it doesn't work with background-position). However, if you want a better solution to could fix all the png images in your css files, you can try this IE PNG Fix from twinhelix and the new version support background position!
|
PHP Code:
.png_hack{ background-image: url(../img/the_image.png) !important; background-image: none; filter: none !important; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/the_image.png'); }
When I started to learn CSS, the easiest thing I found was to create a site in HTML, using tables, and then slowly replace objects one by one. That method, above any other, was the one that really made me understand things.
|