html - Best way to extend a container in full screen -


i have researched bit , saw many examples how developers use technique full screen container , used are:

.container {   position: absolute;   top: 0;   right: 0;   bottom: 0;   left: 0; } 

and

html, body{  height: 100%;  margin: 0; }  .container {   min-height: 100%;   margin: 0; } 

these used methods extend div in full screen when container child of body.

if ask me, method using absolute position not idea because if put other elements inside can not relate because have absolute position.

the method using html , body 100% seems little bit rudimentary.

so, best way extend container?


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -