CSS Chrome Fix (Chrome alone css hack)
October 31, 2010
Chrome alone fix, here when i was in a situation where i had a good design ready for a live implementation, but there was an issue waiting for me. Everything was intact untill i got my site to be run on Chrome browser, i had an exclusive issue that was occuring only on Google Chrome.
The solution has to be in such a way that I get the css style that works only for chrome. How can I have a style written for this exclusive for Chrome???Then i got this Chrome fix on the web,
@media screen and (-webkit-min-device-pixel-ratio:0) { …….. }
Something like this,
@media screen and (-webkit-min-device-pixel-ratio:0) { id_name/class_name{style_property: style_value;} }
One good example for this can be like,
@media screen and (-webkit-min-device-pixel-ratio:0) { #right_col{height: 2419px;} }
Add this to your css styles either inline or external.It works like a wonder 🙂
Try it on your code and get back with your comments.