.empty-layout { width: 100%; height: 100%; position: relative; } /* Prevent margin collapse */ .empty-layout::before { content: "\00a0"; display: block; overflow: hidden; height: 0; } .empty-layout > div.content, .empty-layout > div.content > div { width: 100%; height: 100%; }