Skip to main content
added 46 characters in body
Source Link
Josh Crozier
  • 242.4k
  • 56
  • 401
  • 316

whyWhy not just like this?

html, body {  height: 100%; } #containerInput {  background-image: url('../img/edit_bg.jpg');  height: 40%; } #containerControl {  background-image: url('../img/control_bg.jpg');  height: 60%; } 

Giving you html and body (in that order) a height and then just give your elements a height? Works

Works for me

why not just like this?

html, body{ height:100%; } #containerInput { background-image: url('../img/edit_bg.jpg'); height:40%; } #containerControl{ background-image: url('../img/control_bg.jpg'); height:60%; } 

Giving you html and body (in that order) a height and then just give your elements a height? Works for me

Why not just like this?

html, body {  height: 100%; } #containerInput {  background-image: url('../img/edit_bg.jpg');  height: 40%; } #containerControl {  background-image: url('../img/control_bg.jpg');  height: 60%; } 

Giving you html and body (in that order) a height and then just give your elements a height?

Works for me

why not just like this?

html, body{ height:100%; } #containerInput { background-image: url('../img/edit_bg.jpg'); height:40%; } #containerControl{ background-image: url('../img/control_bg.jpg'); height:60%; } 
html, body{ height:100%; } #containerInput { background-image: url('../img/edit_bg.jpg'); height:40%; } #containerControl{ background-image: url('../img/control_bg.jpg'); height:60%; } 

Giving you html and body (in that order) a height and then just give your elements a height? Works for me

why not just like this?

html, body{ height:100%; } #containerInput { background-image: url('../img/edit_bg.jpg'); height:40%; } #containerControl{ background-image: url('../img/control_bg.jpg'); height:60%; } 

Giving you html and body (in that order) a height and then just give your elements a height? Works for me

why not just like this?

html, body{ height:100%; } #containerInput { background-image: url('../img/edit_bg.jpg'); height:40%; } #containerControl{ background-image: url('../img/control_bg.jpg'); height:60%; } 

Giving you html and body (in that order) a height and then just give your elements a height? Works for me

Source Link
Thaoms
  • 129
  • 1
  • 3

why not just like this?

html, body{ height:100%; } #containerInput { background-image: url('../img/edit_bg.jpg'); height:40%; } #containerControl{ background-image: url('../img/control_bg.jpg'); height:60%; } 

Giving you html and body (in that order) a height and then just give your elements a height? Works for me