I just want to srhink the size of the main section of the grid and i want to increase the length it travels down the page.
<!DOCTYPE html> <html> <head> <style> .item1 { grid-area: header; } .item2 { grid-area: menu; } .item3 { grid-area: main; } .grid-container { display: grid; grid-template-areas: 'menu header header header header header' 'menu main main main main main' 'footer footer footer footer footer footer'; grid-gap: 10px; background-color: #2196F3; padding: 10px; } .grid-container > div { background-color: rgba(255, 255, 255, 0.8); text-align: center; padding: 20px 0; font-size: 30px; } </style> </head> <body> <h1>Grid Layout</h1> <p>This grid layout contains six columns and three rows:</p> <div class="grid-container"> <div class="item1">Header</div> <div class="item2">Menu</div> <div class="item3">Main</div> </div> </body> </html>
2.1m questions
2.1m answers
60 comments
57.0k users