Created
April 22, 2020 04:43
-
-
Save revitalk/15dbdbb0d729b8f79baf97f3e9047cb5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Grid Layout</title> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <div class="layout"> | |
| <div class="one"> | |
| <img src="images/landscape1.jpg" alt=""> | |
| </div> | |
| <div class="two"> | |
| <img src="images/mountain.jpeg" alt=""> | |
| </div> | |
| <div class="three"> | |
| <img src="images/trees.jpeg" alt=""> | |
| </div> | |
| <div class="four"> | |
| <img src="images/waves.jpeg" alt=""> | |
| </div> | |
| <div class="five"> | |
| <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> | |
| </div> | |
| </div> | |
| </div> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *{ | |
| margin:0; | |
| padding:0; | |
| border:none; | |
| } | |
| .container{ | |
| max-width: 1140px; | |
| margin-left:auto; | |
| margin-right:auto; | |
| padding:16px; | |
| } | |
| .layout{ | |
| display:grid; | |
| grid-template-rows: auto auto auto; | |
| grid-template-columns: 200px minmax(200px, 1000px) 200px; | |
| grid-column-gap: 16px; | |
| grid-row-gap:16px; | |
| } | |
| .layout img{ | |
| width:100%; | |
| } | |
| .one, .five{ | |
| grid-column-start: 1; | |
| grid-column-end: 4; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment