Run ยป
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> body{ margin: 0; font-size: 15px; } [class*="col-"] { width: 100%; float: left; padding: 15px; } * { box-sizing: border-box; } img{ max-width: 100%; } .row { float: left; width: 100%; } .container{ margin: 0 auto; width: 100%; max-width: 1120px; } .container img:first-child{ padding-bottom: 30px; } @media only screen and (min-width: 992px) { .col-1 {width: 8.33%;} .col-2 {width: 16.66%;} .col-3 {width: 25%;} .col-4 {width: 33.33%;} .col-5 {width: 41.66%;} .col-6 {width: 50%;} .col-7 {width: 58.33%;} .col-8 {width: 66.66%;} .col-9 {width: 75%;} .col-10 {width: 83.33%;} .col-11 {width: 91.66%;} .col-12 {width: 100%;} } @media only screen and (min-width: 768px) and (max-width: 991px) { .col-s-1 {width: 8.33%;} .col-s-2 {width: 16.66%;} .col-s-3 {width: 25%;} .col-s-4 {width: 33.33%;} .col-s-5 {width: 41.66%;} .col-s-6 {width: 50%;} .col-s-7 {width: 58.33%;} .col-s-8 {width: 66.66%;} .col-s-9 {width: 75%;} .col-s-10 {width: 83.33%;} .col-s-11 {width: 91.66%;} .col-s-12 {width: 100%;} } @media only screen and (max-width: 767px){ .col-m-1 {width: 8.33%;} .col-m-2 {width: 16.66%;} .col-m-3 {width: 25%;} .col-m-4 {width: 33.33%;} .col-m-5 {width: 41.66%;} .col-m-6 {width: 50%;} .col-m-7 {width: 58.33%;} .col-m-8 {width: 66.66%;} .col-m-9 {width: 75%;} .col-m-10 {width: 83.33%;} .col-m-11 {width: 91.66%;} .col-m-12 {width: 100%;} } </style> </head> <body> <!DOCTYPE html> <html> <head> <title>Title of the document</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="style.css" rel="stylesheet"></link> </head> <body> <div class="container"> <div class="row"> <div class="col-4 col-s-6 col-m-12"> <img src="https://s3.amazonaws.com/codecademy-content/courses/ltp/img/mexico-city.png" /> <img src="https://s3.amazonaws.com/codecademy-content/courses/ltp/img/ny.png" /> </div> <div class="col-4 col-s-6 col-m-12"> <img src="https://s3.amazonaws.com/codecademy-content/courses/ltp/img/tokyo.png" /> <img src="https://s3.amazonaws.com/codecademy-content/courses/ltp/img/paris.png" /> </div> <div class="col-4 col-s-6 col-m-12"> <img src="https://s3.amazonaws.com/codecademy-content/courses/ltp/img/invite.png" /> </div> </div> </div> </body> </html> </body> </html>