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 trialPARAG SHARMA
Courses Plus Student 2,383 PointsPositioned elements written later in the source code appear below elements that are written earlier.
This is a true and false question. My answer is True because I think Positioned elements have z index equals to 0. Therefore they sit below or at the same level that the elements that are written earlier or later. But... The actual answer is false. Why?
Is every element in html called a positioned element?
1 Answer
Steven Parker
231,271 PointsThe use of the word "below" in this question does not refer to layers or z-index. It just simply means the "further down on the page".
And by "Positioned elements" they mean those for which a "position" property has been explicitly set (to something other than the default).
Positioned elements can be placed at specific places on the page using other properties, so their location could potentially be anywhere. So the reason the correct answer is "False" is because they wouldn't always appear below previous elements as the statement is attesting.