html - How to say that you need to turn your mobile phone in javascript/css? -
i have website wich can view on horizontal way. don't know how block if vertical. can't figure out... can me this?
you can in css hiding/showing dependant on orientation
<style type="text/css"> #warning-message { display: none; } @media screen , (orientation:portrait){ #wrapper { display:none; } #warning-message { display:block; } } @media screen , (orientation:landscape){ #warning-message { display:none; } } </style> .... <div id="wrapper"> <!-- html website --> </div> <div id="warning-message"> website viewable in landscape mode </div>
Comments
Post a Comment