css - Viewport Resizing on Desktop Browsers -


i have client wanted responsive site caters screens 1400px wide down 960px wide. less , ok horizontal scroll bars appear. site must remain flush left , right edges of screen.

at first figured easy accomplish using media queries, javascript , other modern "responsive" techniques. have gone down road , while first experience full-blown responsive site, wasn't difficult. had lot of dynamic resizing of images, header sizes, text sizes, etc. lots of work , testing worth it. or not??!!

now realizing mobile safari has technology built right in. via viewport resizing. why on ipad both 960px , 1200px wide site snap edges of browser window.

my question 'is possible simulate viewport resizing in desktop browsers in same way mobile safari on ios?'

kind of, using percentages or ems, e.g.

body{     width: 100%;  } content{     width: 60%;     float: left; } sidebar{     width: 35%;     float: right; } 

and use media queries resize text using ems


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -