-2

I have the following code that I am trying to use to make the div the full height of the webpage.

HTML:

<div class="page-wrapper">

 <div class="vc_col-sm-6 wpb_column vc_column_container">
  Some content Goes Here
 </div>


<div>

CSS:

.page-wrapper {height: 100%;}

.vc_col-sm-6 {height: 100%; background: red;}

Fiddle

user38208
  • 1,078
  • 1
  • 15
  • 31
  • 2
    This same question was asked just yesterday: http://stackoverflow.com/questions/28838552/how-to-make-a-text-box-same-height-as-the-window/28838680 – mellis481 Mar 04 '15 at 20:31

3 Answers3

1

.page-wrapper {height: 100%;}

.vc_col-sm-6 {height: 100vh;
    background: red;}
<div class="page-wrapper">
  
<div class="vc_col-sm-6 wpb_column vc_column_container">
 Some content Goes Here
 </div>
</div>

give the height as

height: 100vh;

viewport height

Tushar Gupta
  • 15,504
  • 1
  • 29
  • 47
0

You need to make the height of the html, body, .page-wrapper and inner elements all 100%.

html,
body,
.page-wrapper,
.vc_column_container {
  height:100%;
}
Brett DeWoody
  • 59,771
  • 29
  • 135
  • 184
0

  .page-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: grey;
  }
<div class="page-wrapper">

  <div class="vc_col-sm-6 wpb_column vc_column_container">
    Some content Goes Here
  </div>

  <div>
roshan
  • 2,410
  • 2
  • 25
  • 37