Hey i'm trying to center my images when someone is using an ipad basically below 780px but i am not able to get them to center no matter what i try? My menu and navigation bar are all centered just these images won't
This is the way it looks on tablet but i want to center it.
My code here
<div class="container">
<section id="news">
<div>
<div class="tagline"><h3 class="white">Current News</h3></div>
<div id="spacer"></div>
<div class="box">
<img src="images/joker.jpg" alt=""/>
</div>
<div class="box">
<img src="images/joker.jpg" alt=""/>
</div>
<div class="box">
<img src="images/timber.jpg" alt=""/>
</div>
</div>
</section>
</div>
CSS here
@media screen and (max-width:979px){
/*Global */
.container {
width: 95%;
margin: auto;
overflow: hidden;
padding-left: 15px;
padding-right: 15px;
}
.box img{
width: 300px;
height: 300px;
margin: auto;
overflow: hidden;
padding-left: 15px;
padding-right: 15px;
}
.box {
padding-bottom: 15px;
margin: auto;
overflow: hidden;
padding-left: 15px;
padding-right: 15px;
}
}