Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialguram dgebuadze
Front End Web Development Techdegree Student 4,122 Pointsh1 - margin.
I wrote in main css * { margin: 0;} but in normalize css there is determined h1 margin and this hadn't changed. is this ok? if yes, is this ok to have this kind of normalize css, because as i know it's better elements not to have margins and paddings determined to have full control.
3 Answers
eva sokolovsky
8,111 PointsI work in a big company, we always use css reset in our projects. It's really better way to star a new website.
Shoaib Khan
Front End Web Development Techdegree Graduate 21,177 PointsCheck out this link, they have an example you can follow.
https://www.w3schools.com/cssref/sel_all.asp
Try this:
h1 * {margin: 0;}
eva sokolovsky
8,111 PointsThat will affect on every child elements of h1.
Paul Walker
28,904 PointsYou can use the CSS reset before you even start to set up your CSS. According to Google search on what is normalize CSS, I get back this definition. "Normalize.css is a small CSS file that provides better cross-browser consistency in the default styling of HTML elements." I would then use a CSS reset before you begin to create your CSS. Take a look at how it looks like before you start working on your CSS. Hope that helps.