The position: ________ property creates a new stacking context and positions an element in relation to the browser viewport.
- absolute
- fixed
- relative
- static
The position: absolute property creates a new stacking context and positions an element relative to its nearest positioned ancestor or to the containing block. This is useful for precise positioning within the document structure.
Loading...
Related Quiz
- What is the role of the animation-iteration-count property in CSS?
- What is the difference between a pseudo-class and a pseudo-element in CSS?
- The ::first-letter pseudo-element in CSS targets the ________ of a block-level element.
- Describe how CSS custom properties (CSS Variables) can be used to streamline the management of color schemes in a stylesheet.
- What property is commonly used to control the speed curve of the transition effect?