1

Here's my almost finished website.

The following media query is ignored by my iPad mini's browser. Why?

@media all and (max-width:800px){
#trigger {display:none;}
#telephone_leaf {display:none;}
#number_leaf {opacity:1;}
}

(style.css, line 974)

It works when resizing the desktop browser!

Actually, this is part of another problem. I can't seem to get the telephone-hover/click-leaf image to work on my iPad. For that reason, I'm trying to degrade into just showing the god-damn telephone number from the start at a certain browser width. But not even the @m works!! Going crazy.

Neil S3ntence
  • 198
  • 2
  • 19
  • Look here [Link][1] this should answer your question [1]: http://stackoverflow.com/questions/3375706/ipad-browser-width-height-standard – Oliver-H-Miller Jul 25 '14 at 17:57

2 Answers2

2

I just found the answer! max-width is not supported by mobile devices. You have to put it as max-device-width! :)

Neil S3ntence
  • 198
  • 2
  • 19
0

Make sure to prefix all your code!
@media is still new to CSS3, so make sure it's all prefixed!



So with your code it needs to be like this:

@-webkit-media all and (max-width:800px){
#trigger {display:none;}
#telephone_leaf {display:none;}
#number_leaf {opacity:1;}
}
Oliver-H-Miller
  • 451
  • 1
  • 7
  • 19