I have an element I need to hide if on mobile device. I saw an example of the forums
@media only screen and (max-width: 480px) {
.new-style {display:none;}
}
However using my phone the product dimensions show 1440 x 2560 pixels as the screen size so to hide it using that method would effectively hide it from most monitors too -or am I misunderstanding something? Can someone help me with a solution?
I'd like to propose a magical miva mvt tag of some sort i.e. < mvt:commentif {ismobile=1} > to turn the tagged block into a comment or some other simple solution for us non-programmer folks.
@media only screen and (max-width: 480px) {
.new-style {display:none;}
}
However using my phone the product dimensions show 1440 x 2560 pixels as the screen size so to hide it using that method would effectively hide it from most monitors too -or am I misunderstanding something? Can someone help me with a solution?
I'd like to propose a magical miva mvt tag of some sort i.e. < mvt:commentif {ismobile=1} > to turn the tagged block into a comment or some other simple solution for us non-programmer folks.
Comment