Hi,
I am struggling to work out how to create the following layout:
I’m trying to have two columns that are 50% of the full width of the screen with an inner column in each that is a fixed width inside each column so the text is centred.
This is what I have so far:
HTML:
<section class="publishers-advertisers">
<div class="container-fluid">
<div class="row">
<div class="col-md-6 col-xs-12 pad-x-0 publishers">
<div class="overlay"></div>
<div class="container">
<div class="row">
<div class="col-md-10 ml-auto text-center pad-x-0">
<h2>text</h2>
<p>text</p>
</div>
</div>
</div>
</div>
<div class="col-md-6 col-xs-12 pad-x-0 advertisers">
<div class="overlay"></div>
<div class="container">
<div class="row">
<div class="col-md-10 ml-auto text-center pad-x-0">
<h2>text</h2>
<p>text</p>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
CSS:
.publishers-advertisers{
padding-top: 0px
}
.publishers-advertisers h2{
font-size: 36px;
color: #fff;
text-transform: uppercase
}
.publishers{
background: #131313;
height: 500px;
background-size:cover;
position: relative;
color: #fff;
z-index: 1}
.publishers .container{
position: relative;
z-index: 3;
padding: 60px 0 ;
}
.advertisers{
background: #2f2f2f;s
height: 500px;
background-size:cover;
position: relative;
color: #fff;
z-index: 1
}
.advertisers .container{
padding: 60px 0 ;
position: relative;
z-index: 3
}
The text is not centred in each of the left and right panels.
Any help would be appriciated