Hi! How’s everyone?
I have some questions that are lately happening in some of my projects, whenever I add an absolute element sometimes is “overlapping” or behind the other elements and messing everything as you can see in the image. Is there a way to solve this?
Absolute elements are positioned in relation to the nearest position: relative parent container, or the <body> if no relative parents exist, so they are positioning right where you’ve asked them to. You might be wanting something other than absolute?
As far as the z order, that will be dictated first by the order of the elements in the DOM, and then overridden by the z-index.
The best way to learn how all of these settings work is to use something like codepen and experiment with the CSS settings to work out the different positioning behaviors.
Again, the best way to learn how all of these settings work is to use something like codepen and experiment with the CSS settings to work out the different positioning behaviors. Once you understand your element arrangement and CSS it’s pretty easy to replicate in the designer.