0
0
CSSmarkup~20 mins

Absolute units in CSS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Absolute Units Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Absolute Units in CSS
Which of the following CSS units is considered an absolute unit and does NOT scale with the user's browser settings or screen resolution?
Aem
Bpx
Cvw
Drem
Attempts:
2 left
💡 Hint
Think about units that always represent the same physical size regardless of user settings.
📝 Syntax
intermediate
2:00remaining
CSS Absolute Unit Syntax
Which CSS rule correctly sets the font size to 12 points using an absolute unit?
CSS
p { font-size: ?; }
A12pt;
B12px;
C12em;
D12%
Attempts:
2 left
💡 Hint
Points (pt) are an absolute unit used in print and screen.
rendering
advanced
2:00remaining
Visual Effect of Absolute Units
Given the CSS below, what will be the visual width of the div on a screen with 96 DPI (dots per inch)?
CSS
div { width: 2in; border: 1px solid black; }
A96 pixels wide
B2 pixels wide
C192 pixels wide
DDepends on viewport width
Attempts:
2 left
💡 Hint
1 inch equals 96 pixels on standard screens.
selector
advanced
2:00remaining
Using Absolute Units in Media Queries
Which media query correctly targets devices with a minimum width of 8 centimeters?
CSS
@media (min-width: ?) { body { background: lightblue; } }
A8cm
B8px
C8rem
D8vw
Attempts:
2 left
💡 Hint
Centimeters (cm) are an absolute unit representing physical length.
accessibility
expert
3:00remaining
Accessibility Concerns with Absolute Units
Why might using absolute units like px for font sizes cause accessibility issues for some users?
ABecause absolute units automatically scale text size based on user preferences, causing inconsistent layouts.
BBecause absolute units only work on mobile devices and not desktops.
CBecause absolute units cause syntax errors in CSS, preventing styles from applying.
DBecause absolute units ignore user browser zoom and font size settings, making text harder to read for users with visual impairments.
Attempts:
2 left
💡 Hint
Think about how users adjust text size for readability.