Padding-top does not affect Chrome

Illustration of the problem as shown in Chrome:

problem as seen in chrome

Expected Behavior and FF:

expected behavior as seen in firefox

We create the Hybrid Orange page , but the top of the add-on does not affect the height of the Tecnología div in Chrome. I want the div to be 100% tall, so the first scroll of the px is the next section. I'm not sure what makes this behavior different in FF and Chrome.

Relevant part of HTML:

<nav>
  <header id = "bar">
    [...]
  </header>
  <ul>
    [...]
  </ul>
</nav>

<div id = "inicio">
  [...]
</div>

<div id = "tecnologia">
  <div class = "v_center">
    <div class="container clearfix">
      <div id="tecno-web" class="tecno-div">
      [...]
      </div>
    </div>
  </div>
</div>

Relevant part of css:

nav {
  position: absolute;
  top: 60%;
  z-index: 100;
  width: 80%;
  height: 4em;
  padding: 0 10%;
  /* Bug of android browser: http://stackoverflow.com/q/19254146/938236 */
  -webkit-backface-visibility: hidden;
  background-color: #FFF;
  box-shadow: 0 2px 8px -1px gray
  }

#tecnologia {
  display: table;
  position: relative;

  width: 100%;
  padding-top: 4em;
  /* height of this section is 100% (-4em is to compensate the padding-top) */
  height: calc(100% - 4em);

  background-color:#68a4dc;
  background-image: url('/images/fondo_azul.jpg');
  color:#ffffff;
  }

: tecnologia 100%, (100% - 4em) + . , Chrome , , Tecnología. , Firefox. height: 100%;, Chrome, Firefox ( ), + .

+3
1

,

#tecnologia {
  display: table;
  position: relative;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;

  width: 100%;
  padding-top: 4em;
  height: 100%;

  background-color:#68a4dc;
  background-image: url('/images/fondo_azul.jpg');
  color:#ffffff;
}

Chrome Firefox, , , . ,

display: table 

#. Chrome 4 , , 100% - 4em. , Firefox .

, . , reset.css .

+4

All Articles