html - How to set up a height for a <div> in responsive css designs? -


i trying make responsive website. issue if not setting div height bottom of div content has come , overlay top div contents. if sets height, when see in responsive takes full height , show white space. can guys please sort out?

you want this:

<div style="height:20%"> content </div> 

or

<div style="height:40px"> content </div> 

use % specify amount of space div in current container or px number of pixels

http://www.w3schools.com/cssref/pr_dim_height.asp


Comments

Popular posts from this blog

apache - setting document root in antoher partition on ubuntu -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -

Process 'command 'F:\android-sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1 -