4 ms·
Long text for just a few explanation. As a developer I hate reading those kind of tips since it doesn't go straight to the point. Here's my tl;dr : > the stack
by baby 14y ago
Long text for just a few explanation. As a developer I hate reading those kind of tips since it doesn't go straight to the point. Here's my tl;dr :
> the stacking order is the same as the order of appearance in the HTML
Actually this is false, as last in code is displayed on top
> When you introduce the position property into the mix, any positioned elements (and their children) are displayed in front of any non-positioned elements
Use a "position:" and it will go on top of div not using it.
> z-index only works on positioned elements
use "position:" to use "z-index" otherwise it won't work.
> ...
I felt like the rest was unnecessary unless you plan to play a lot with z-index. Then you can get a better tutorial/article/documentation on it.
- the_gipsy 14y ago11 paragraphs + code snippets just to say: "opacity" creates a stacking context. And a really annoying way of teasing and dragging the "observation" until the end of the article.
- thiagobrandam 14y ago> Actually this is false, as last in code is displayed on top If it's a stack, then the last one _is_ displayed on top.
- baby 14y agoThat goes without saying.