I am currently working on creating a responsive webpage with 4 blocks using rows and columns, each featuring an image background with an overlay and title. Everything is functioning as expected except for the width of the overlay.
My issue can be better understood through this image, where the left column fills up entirely from left to right, while the right column seems to be missing the full width on both sides.
https://i.sstatic.net/sJ1gT.png
HTML
<div class="wrapper">
<div class="row" id="rows">
<div class="col-sm-6 col-md-6 col-lg-12 text-center portfolio">
<div id="portfolio-overlay" class="titlePush">Portfolio</div>
</div>
<div class="col-sm-6 col-md-6 col-lg-4 text-center tools">
<div id="tools-overlay" class="titlePush">Tools</div>
</div>
<div class="col-sm-6 col-md-6 col-lg-4 text-center about">
<div id="about-overlay" class="titlePush">About</div>
</div>
<div class="col-sm-6 col-md-6 col-lg-4 text-center contact">
<div id="contact-overlay" class="titlePush">Contact</div>
</div>
</div>
</div>
CSS
html,body,.wrapper {
height:100%;
width:100%;
}
#rows {
height: 30%;
font-family: 'Poiret One', cursive;
font-size: 24px;
color: white;
}
.portfolio {
height: 100%;
background: url("https://www.topdraw.com/assets/uploads/2015/07/HiRes2.jpg");
-webkit-background-size:;
background-size: cover;
background-position: center;
}
/* Portfolio Overlay Block */
#portfolio-overlay {
background: rgb(0, 0, 0); /* fallback color*/
background: rgba(0, 0, 0, 0.4);
height: 100%;
max-width:100%;
}
Demo: JSFiddle