When specifying the width of an element, using the unit ______ ensures that the sizing is scalable and based on the viewport width.
- vw
- vh
- %
- px
The correct option is 'vw.' The 'vw' unit represents a percentage of the viewport width, allowing responsive design by specifying widths relative to the size of the viewport.
Loading...
Related Quiz
- How does the implementation of CSS Grid Layout differ among various browsers, and why is this significant?
- What is the primary challenge in designing a CSS layout that supports both left-to-right (LTR) and right-to-left (RTL) languages?
- What is the @media rule in CSS used for?
- What property is commonly used to control the speed curve of the transition effect?
- Which pseudo-class would you use to style an element that is being hovered over by a mouse pointer?