I have a container
in which the rows are divided into 8 and 4 cols but when I try to put a div inside a col there is a spacing on the left and right of the dov inside that col. Why is that?
.contactUsText {
background-color: gray;
height: 50px;
}
.mailUs {
height: 40px;
background-color: gray;
padding-top: 7px;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container-fluid">
<div class="row">
<div class="col col-12 col-sm-12 col-md-8 col-lg-8 mapDiv" id="maps">
</div>
<div class="col col-12 col-sm-12 col-md-4 col-lg-4 formDiv">
<div class="contactUsText"> Connect </div>
<div class ="mailUs"> Leave Us a Message!</div>
</div>
</div>
<div class="row">
<div class="col col-12 col-sm-12 col-md-12 footer"> </div>
</div>
Contact us and the mailUs is having spaces both the side.
EDIT
This is not the duplicate.
That question is having for the solution who have nested container
but in my question there is only one container
which have multiple div applying htat solution gives me no paddint to the whole container
which is not what I wanted.