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> 

source forcing web-site show in landscape mode only


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -