Full screen 3 columns that stack on mobile

On a full sized screen, I have three images in a column format that should, all together, take up the entire screen. Right now, my code works, in that the the images take up the width of the screen and on screen less than 600px, the images stack one top of one another. But the issue is that the images are not taking up the entire width. The code is below and I am using a sample pic that is huge, but it still doesn't show the entire height of the image.

EDITED TO TAKE OUT MY ORIGINAL CODE

Okay, per comments, I have changed the code to look: http://jsfiddle.net/zx11x99x/

.wrapper img{
    float:left;
    width:100%;
}

@media screen and (min-width: 600px) {
    .wrapper img{
        width:33%;
    }
}
<div class="wrapper">
    <img src="https://recodetech.files.wordpress.com/2014/05/early-vehicle-lores.jpg?quality=80&strip=info" alt="">
    <img src="https://recodetech.files.wordpress.com/2014/05/early-vehicle-lores.jpg?quality=80&strip=info" alt="">
    <img src="https://recodetech.files.wordpress.com/2014/05/early-vehicle-lores.jpg?quality=80&strip=info" alt="">
</div>

Answers


example example example example example example example example example http://jsfiddle.net/zx11x99x/

code

Updated:

* { padding: 0; margin: 0; }

@media (max-width:1400px) and (min-width:600px) {
.wrapper > img{
    float:left;
    max-width:33%;
    }
}

@media (max-width:600px) and (min-width:100px) {
    .wrapper > img{
        width:100%;
        display:block;
    }
}

JSFIDDLE

Just also make sure you use the correct Meta tag.


Need Your Help

how to integrate CMS component of Liferay in a Spring java application?

spring-mvc content-management-system liferay-6 drools-guvnor

I have very dynamic content for each section of the web portal.The rules for that content are stored in the rule engine drools along with the content,Now I want to separate the content part from dr...

PHP include() alternative?

php include

I want to know if my code is safe and if there are other safer alternatives to include external files..