DEV Community

Discussion on: Code a Responsive Navbar with HTML and CSS Flexbox: Pt. 1

Collapse
 
ekafyi profile image
Eka • Edited

Awesome article, love how detailed it is. Hope it helps many people who are new to HTML & CSS!

The following is more for the readers rather than you (as I'm sure you already know):

Step 7 shows how to remove the default margin. If you are working on a production site, this is ideally done in a global style separate from pages or component styles (eg. your navbar or layout styles). Why? Because if you have reset styles in (eg.) the navbar code and the navbar is removed/replaced/not used, the reset styles may get accidentally removed and may break other parts of the site. šŸ˜µ

Some popular CSS reset/normalize styles are discussed here: css-tricks.com/reboot-resets-reaso...

Collapse
 
ceeoreo profile image
Ceora Ford

Thank you!! And thanks for the addition. I'm sure a lot of readers will find this usefulšŸ˜ƒ