The ________ pseudo-element is often used in creating a clearfix.
- ::before
- ::after
- ::both
- ::clearfix
The correct option is "::after." The ::after pseudo-element is commonly used in creating a clearfix to clear floats and ensure proper layout when dealing with floated elements in a container.
Loading...
Related Quiz
- To address accessibility concerns, alternative text for icon fonts can be provided using the ________ attribute.
- What is a significant advantage of using SMACSS in large-scale web applications?
- How do you define a CSS variable within a root element?
- How would changing the CSS unit from em to rem affect the scaling of a website's typography on different devices?
- For smoother transitions, the property will-________ can be used to hint the browser about what aspects of an element will change.