12345678910111213141516171819202122232425262728293031323334353637 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title> CSS Grid</title>
- <style>
- #box {
- width: 300px;
- height: 300px;
- display: grid;
- /* grid-template-columns: 1fr 1fr 1fr; */
- }
- .two {
- background: orange;
- }
- .one,
- .three {
- background: skyblue;
- }
- </style>
- </head>
- <body>
- <h1> CSS Grid</h1>
- <div id="box">
- <div class="one"></div>
- <div class="two">target item</div>
- <div class="three"></div>
- </div>
- </body>
- </html>
|