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 trial
eslam said
Courses Plus Student 6,734 Pointscss reset
what`s the most intuitive way tor rest css default browser style in real world projects do i just have to do that :
*{
margin:0;
padding:0
}
or do i have to use something like normalize.css ? so if you are working in a real project what would you do to reset the default styles
2 Answers
Wade Williams
24,476 PointsThe answer to your question is that it depends on the project. However to answer your question about "real world" more often then not you'll see a standard reset such as normalize.css, the reason being is that they're tried and tested and it's one more thing you can cross off your list of things to do.
Here's a good collection and description of different resets:
https://www.webpagefx.com/blog/web-design/css-reset-stylesheets/
eslam said
Courses Plus Student 6,734 Pointsthx wade, and is it better to make it within the main css file or make it in a separate css file ?
Max Senden
23,177 PointsHi Eslam,
I would add normalize.css always as a separate stylesheet. Browsers are updated constantly, hence normalize.css is as well. By linking it as a separate file it'll be easier to keep up to date in the future (and keep track of any changes).