Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>CSS Website Layout</title>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style>
- * {
- box-sizing: border-box;
- }
- body {
- margin: 0;
- }
- /* Create three equal columns that floats next to each other */
- .column {
- float: left;
- width: 33.33%;
- padding: 15px;
- }
- /* Clear floats after the columns */
- .row:after {
- content: "";
- display: table;
- clear: both;
- }
- /* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
- @media screen and (max-width:600px) {
- .column {
- width: 100%;
- }
- }
- </style>
- </head>
- <body>
- <div class="row">
- <div class="column">
- <h2>Column</h2>
- <p>college details.</p>
- </div>
- <div class="column">
- <h2>Column</h2>
- <p>image here.</p>
- </div>
- <div class="column">
- <h2>Column</h2>
- <p>college activities.</p>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement