This purple flower might not be that spectacular
but is a good example to explain the stack order of elements.
The stack order of elements is described by the CSS z-index property. An element with a higher value is shown in front of a lower valued element. Position properties (relative, absolute or fix) have to be assigned to elements in order to make the z-index work.
The flower is made of 3 parent elements with the following ids: purple_flower36, petal1 and petal5. The yellow center should be on top of the petals so we assign the highest z-index to it. By giving a lower z-index to the small petals (parent element is petal1) these are shown under the yellow dot. The big petals (parent element petal5) have the lowest z-index. The order of the child elements is also influencing the stack order. For example, petal3 is shown below petal4 although they have the same z-index 3 concluding the first element has a higher stack order than the second element.
Change the top/left value of #purple_flower36 and put the flower wherever you want!
The stack order of elements is described by the CSS z-index property. An element with a higher value is shown in front of a lower valued element. Position properties (relative, absolute or fix) have to be assigned to elements in order to make the z-index work.
The flower is made of 3 parent elements with the following ids: purple_flower36, petal1 and petal5. The yellow center should be on top of the petals so we assign the highest z-index to it. By giving a lower z-index to the small petals (parent element is petal1) these are shown under the yellow dot. The big petals (parent element petal5) have the lowest z-index. The order of the child elements is also influencing the stack order. For example, petal3 is shown below petal4 although they have the same z-index 3 concluding the first element has a higher stack order than the second element.
Change the top/left value of #purple_flower36 and put the flower wherever you want!