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

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

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