j.silver Posted October 25, 2015 Share Posted October 25, 2015 Dear All: In a W3school's tutorial is this tip: Tip: When aligning elements with position, always define margin and padding for the <body> element. This is to avoid visual differences in different browsers. Do we still need to do this if we have already declared the margin and padding for the whole page, e.g. *{margin: 0; padding:0;} and why? Link to comment Share on other sites More sharing options...
Ingolme Posted October 25, 2015 Share Posted October 25, 2015 Since the body element is one of the elements that the * selector targets, you don't need to put it on the body. Link to comment Share on other sites More sharing options...
j.silver Posted October 25, 2015 Author Share Posted October 25, 2015 Many thanks Ingolme Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now