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 trialSiam Hossain
Full Stack JavaScript Techdegree Student 4,615 Pointsunclear explaining
form 8:30 to 9:13 it is against logic and you did not even explain it
3 Answers
Steven Parker
231,198 PointsHere's a handy CSS Default Values Reference from W3Schools.
You can also look up the default settings for individual properties in a reference like MDN. In this case, only the display property has been altered.
Steven Parker
231,198 PointsThe instructor does explain exactly what is being done. Starting at 8:30, he says:
"Finally, div elements like the list container, by default display as block-level elements.
So setting an inline display of block here seems a bit unnecessary.
So let's instead remove the inline style attribute from the list container.
You can remove an attribute from an element like style using the removeAttribute() method."
It seems very logical to remove the style element completely if you want everything to display in the default style. What about it seems "against logic" to you?
Siam Hossain
Full Stack JavaScript Techdegree Student 4,615 Points"you want everything to display in the default style." where is that default style?!!