firefox only css hack | opera only css hack
Below are the firefox only and opera only hacks. Its not recommended to use CSS hacks, but sometimes, we need to write CSS hacks to target specific browsers.
/*firefox only hack*/
@-moz-document url-prefix() {
.selector{
your declaration
}
}
/*opera only hack*/
@media not all and (-webkit-min-device-pixel-ratio:0) {
.styled-select select{
width:100%;
height:24px;
}
}
Latest posts
- bootstrap popover | bootstrap popover hide on click | bootstrap popover hide on document.click
- Avoid console errors in browsers that lack a console | HTML5 boilerplate
- getting started with Sublime editor | how to install zen coding | zen coding for sublime editor
- getting started with backbone | Models in Backbone
- How to delete a model in backbone






