![]() |
|
||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||
|
|
#1 | |
|
WLC Member
Join Date: Aug 2009
Posts: 16
|
I need a one div to be in Chrome only, so i used a code:
Code:
div.chrome_hack{
display:none;
}
@media screen and (-webkit-min-device-pixel-ratio:0)
{
div.chrome_hack{
display:block;
}
}
Quote:
And if there isn't can we say this solution is correct? |
|
|
|
|
|
|
#2 |
|
WLC Mod
Join Date: Jul 2009
Location: Milky Way Galaxy
Posts: 3,140
|
That's the best solution out there. Really, you're CSS is fine, it's just that the validator doesn't know that one small thing (Which is good, you only want Chrome [Safari gets it too] to see it.) so it calls it as an error.
__________________
Praise be to the Lord God for the ability to learn, the capability to analyze, and the time to help users on this forum. |
|
|
|
|
|
#3 |
|
WLC Member
Join Date: Aug 2009
Posts: 16
|
Thank you very much!
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
Linear Mode |
|
|