Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <title>CSS Task</title>
- <style>
- * {
- padding: 0;
- margin: 0;
- }
- .container {
- width: 100vw;
- min-width: 1200px;
- }
- .row {
- clear: both;
- }
- .col {
- width: 100%;
- height: 25vh;
- float: left;
- }
- @media only screen and (min-width: 600px) {
- .col {
- width: 50%;
- height: 50vh;
- }
- }
- @media only screen and (min-width: 1200px) {
- .col {
- width: 25%;
- height: 100vh;
- }
- }
- </style>
- </head>
- <body>
- <div class="container">
- <div class="row">
- <div class="col" style="background-color:red;"> clo-1 </div>
- <div class="col" style="background-color:blue;"> clo-2 </div>
- <div class="col" style="background-color:green;"> clo-3 </div>
- <div class="col" style="background-color:yellow;"> clo-4 </div>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement