How to delete the area under the navbar? I used the “margin-bottom: 0” and it’s not working correctly.
3
just add .container class to your .wide div
<div class="wide container"> <h1>test</h1> </div>
https://jsfiddle.net/grassog/1b0m6ztx/
use clearfix class with wide or just add overflow: hidden; in .wide to set h1 margin
overflow: hidden;
h1
<div class="wide clearfix"> <h1>test</h1> </div>
or
.wide { overflow: hidden; }
Wrap all the content inside wide div with <div class="container"></div> to keep full width background image as it is in your screenshot.
wide
<div class="container"></div>
<div class="wide"> <div class="container"> <h1>test</h1> </div> </div>
JSFiddle example
Click here to cancel reply.
3
Answers
just add .container class to your .wide div
https://jsfiddle.net/grassog/1b0m6ztx/
use clearfix class with wide or just add
overflow: hidden;
in .wide to seth1
marginor
Wrap all the content inside
wide
div with<div class="container"></div>
to keep full width background image as it is in your screenshot.JSFiddle example