Challenge - 5 Problems
Print Stylesheet Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Why use a separate print stylesheet in Sass?
Which of the following best explains the main reason to organize a separate print stylesheet in Sass?
Attempts:
2 left
💡 Hint
Think about how printed pages differ from screens in style needs.
✗ Incorrect
Print stylesheets focus on adjusting layout and colors for paper, making printed content clear and readable. This is why they are separated.
📝 Syntax
intermediate2:00remaining
Correct syntax for print media query in Sass
Which option shows the correct way to write a print media query in Sass to style printed pages?
SASS
@media print { body { font-size: 12pt; } }
Attempts:
2 left
💡 Hint
Remember the standard media query syntax for print.
✗ Incorrect
The correct syntax for targeting print media is @media print { ... }. Other options are either invalid or target multiple media types.
❓ layout
advanced2:30remaining
Effect of print styles on page layout
Given this Sass print stylesheet snippet, what will be the visual effect when printing?
@media print {
nav, footer {
display: none;
}
main {
width: 100%;
}
}Attempts:
2 left
💡 Hint
Consider what happens when elements are set to display none and width 100%.
✗ Incorrect
Setting display: none hides nav and footer from print. Setting width: 100% on main makes it fill the available page width.
❓ accessibility
advanced2:30remaining
Accessibility considerations in print stylesheets
Which practice improves accessibility when organizing print stylesheets in Sass?
Attempts:
2 left
💡 Hint
Think about what makes printed text easy to read for everyone.
✗ Incorrect
High contrast and readable font sizes help users with visual impairments read printed content easily. Other options reduce readability or accessibility.
❓ selector
expert3:00remaining
Which selector targets only printed links in Sass?
In a Sass print stylesheet, which selector correctly styles only links when printing?
Attempts:
2 left
💡 Hint
Consider which pseudo-classes apply in print media.
✗ Incorrect
In print media, pseudo-classes like :hover do not apply. The base a selector styles all links for print.