Divxatope !!hot!! -
Clear floats or add overflow: hidden/auto to parent:
Check parent display: grid and ensure no item is set to grid-row: 1 / 1 overlapping others. 5. Generic "text covering div" due to overflow If you literally mean the div is too small and text spills out covering other elements : divxatope
.clearfix::after { content: ""; display: table; clear: both; } Or for overlapping text due to floats: Clear floats or add overflow: hidden/auto to parent:
Add padding or margin to the target div equal to the header height: .container { position: relative
.covered-div { clear: both; } Problem: A fixed header overlaps the top of a <div> when scrolling.
.container { position: relative; } .text-block { position: absolute; top: 0; left: 0; z-index: 2; } .covered-div { position: relative; z-index: 1; } Problem: Floated elements or negative margins cause text to overlay another div.