html5 - Single page fixed viewport -


i making single page scrolling vertical site has viewport locked @ 100% height.

the problem have designs given me calculated 1200x800 (macbook 13") view using 1920x1080 (macmini) resolution.

furthermore, usable height area in each screen limited each widget browser uses 800 might example 638 height (it more profound in ipads 768 browser height in total not 768 @ all). also, design must centered in width , height. width, can use margin:0 auto, height trickier because need make div absolute.

what did far make div absolute , have manipulated javascript, know if there pure css way it since javascript require cases , excess code.

this i'm using body height , html height @ 100%

<div style=" display:table;width:100%;height:100%">     <div style="display:table-cell;vertical-align:middle;">      </div> </div> 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -