Responsive website not flowing correctly, please help.
I am trying to build a responsive website and I can not get it to flow correctly. I'm sure it's something simple but I seem to be overlooking it. Here is my issues...
- The site when in a larger format (tablet or desktop) is not flowing the images (which are in div tags) in a row but instead, it is leaving them in a single column.
- The background which these divs are located on top of is being knocked out for the site's main background color.
ANY help with this will be GREATLY appreciated. I am testing it at the following link (Celestial Setters ) if you want to look at the code.
-THANKS!!!
The HTML looks like this...
<div class="row">
<div class="col col-md-one-half">
<div class="vann-box"><a href="#" class="button">Vann</a></div>
<div class="henry-box"><a href="#" class="button">Henry</a></div>
<div class="parker-box"><a href="#" class="button">Parker</a></div>
<div class="johncreasy-box"><a href="#" class="button">John Creasy</a></div>
<div class="huck-box"><a href="#" class="button">Huck</a></div>
</div>
</div>
The CSS looks like this...
BEFORE THE @MEDIA CHANGE
.row:before, .row:after {
content: "";
display: table;
}
.row:after {
clear:both;
}
.col {
width: 100%;
}
The other div class boxes that are listed in the HTML are duplicates of the following one but with the URL changed. So I'm only showing one of them.
.vann-box {
background-image: url(../images/dogs/van/van_head.jpg);
background-size: cover;
background-position: center;
color: #FFFFFF;
padding: 250px 20px 60px;
text-align: center;
text-decoration: none;
height: 300px;
}
AFTER THE @MEDIA CHANGE
.col-md-one-half {
width: 50%;
}
.col {
float: left;
padding: 0px 0px 0px;
}
