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?
January 26, 2017 at 9:31 am
#250557
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;
}