RE: Web Application Development Lesson 1 - HTML Layout by dealsy
Viewing a response to: @dealsy/web-application-development-lesson-1-html-layout
educationยท@thierryddยท
0.000 HBDGreat work! I would recommend to include some basic CSS Reset ๐ ฐ Also, for your HTML Layouts, you might want to use [CSS Grid](https://css-tricks.com/snippets/css/complete-guide-grid/) ๐ ฑ and [Flexbox](https://css-tricks.com/snippets/css/a-guide-to-flexbox/) ๐ ฒ. This will become particularly handy when you will build responsive layout. In your CSS for `.topnav a` ๐ ณ, the `text-align` property is useless. ```html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> * { /* ๐ ฐ */ box-sizing: border-box; padding: 0; margin: 0; } html { height: 100%; } body { min-height: 100%; display: grid; /* ๐ ฑ */ grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; grid-template-areas: "header" "main" "footer" } nav { grid-area: header; display: flex; /* ๐ ฒ */ flex-direction: row; background-color: #00BFFF; } nav a { /* ๐ ณ */ color: #f2f2f2; padding: 14px 16px; text-decoration: none; font-size: 17px; } nav a:hover { background-color: #ddd; color: black; } nav a.active { background-color: #4CAF50; color: white; } .content { grid-area: main; background-color: #4CAF50; } footer { grid-area: footer; background-color: salmon; } </style> </head> <body> <nav> <a href="#home" class="active">Home</a> <a href="#about">About</a> <a href="#contact">Contact</a> </nav> <div class="content"> THIS IS THE BODY CONTENT! </div> <footer> THIS IS A FOOTER </footer> </body> </html> ``` <br /> .png) My IDE of choice is [VS Code](https://code.visualstudio.com/). It's free, open source and runs a bunch of programming languages. Happy Steeming!
๐ dealsy,