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
Jeremy Coleman
5,449 Points* {Margin: 0; Padding: 0;} Bad Practice?
I seen this a couple times in tutorials and was wondering if this would be bad practice to use in real world projects?
* {
margin: 0;
padding: 0;
}
2 Answers
Eric Buchmann
15,080 PointsThere shouldn't be anything wrong with that. The reset CSS files that are out there do something similar anyway to reset all of the styles for consistency. Or check out http://cssreset.com/ it has some reset CSS files on there that you can use too if you want to reset everything to be the same between browsers.
Jeremy Coleman
5,449 PointsAlright, I have something similar, although it didn't reset a lot of the elements so was just curious if it was a okay thing to do. Thanks for the help!