I use @media queries to only make the Chrome browser to position the ".l-triangle" in a specific position. Therefore, I use the following method
@media screen and (-webkit-min-device-pixel-ratio:0) {
.l-triangle {
background: transparent url('../images/menu_bg_left.gif') no-repeat;
position: absolute;
float: left;
width: 55px;
height:75px;
display: block;
left: 0px;
top:0px;
z-index: 0;
-webkit-box-shadow: 0 8px 6px -6px rgba(0,0,0,0.7);
-moz-box-shadow: 0 8px 6px -6px rgba(0,0,0,0.7);
box-shadow: 0 8px 6px -6px rgba(0,0,0,0.7);
}
It works fine for Chrome browsers with a screen size greater than 968 pixels, but not 968 pixels.
My questions are: how do I pass 2 different css values for Chrome browsers with two different screen sizes?
source
share