Is there any way that I can override something in css and use different size if user/visitor uses opera?
Example, in chrome, ff and safari this works great:
.section#search h3 a {
background: url("../img/search.png") no-repeat 0 50%;
padding: 0 0 0 25px;
position: relative;
}
But in Opera padding is not really good… I need to add top: 16px; into it or to change padding to padding: 0 0 36px 25px;
Is there any “hack” like for IE or maybe javascript usage? No ideas…
All I need is to add that top or new padding just for opera. Thanks 😉
With the conditional-css tool, you can target opera, but engine is important. conditional-css.com explains:
http://www.conditional-css.com/advanced
they write that a conditional tag is formed like:
and that browser names are as follows:
So it should logically follow, according to them, that you can target via:
[if Opera]like this in a CSS block:
or like this for a CSS include: