Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS Height by percentage Reply To: CSS Height by percentage

#156538
Merri
Participant

In short:

html,body { height: 100%; margin: 0; }
.div1 { background: blue; height: 10%; }
.div2 { background: red; height: 30%; }
.div3 { background: green; height: 60%; }

http://codepen.io/Merri/pen/drkjc