Forums

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

Home Forums CSS how to increase height of a floating element according to its parent? Reply To: how to increase height of a floating element according to its parent?

#250557
Shikkediel
Participant

http://stackoverflow.com/a/16398904/3168107

If it’s only for a visible gap at the top (and not actual displacement), you could also do this:

aside {
  display: table-cell;
  background: pink;
  width: 25%;
  height: 100%;
  padding-top: 10px;
  background-clip: content-box;
}