0
0
CSSmarkup~20 mins

Border radius in CSS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Border Radius Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📝 Syntax
intermediate
2:00remaining
What is the correct CSS syntax to make all corners of a box rounded with a radius of 10px?
Choose the CSS rule that will apply a 10px rounded corner to all four corners of a box.
Aborder-radius: 10px 10px 10px;
Bborder-radius: 10px;
Cborder-radius: 10px 10px 10px 10px 10px;
Dborder-radius: 10;
Attempts:
2 left
💡 Hint
The property accepts one to four values, but one value applies to all corners.
rendering
intermediate
2:00remaining
What will the shape look like with this CSS rule?
Given this CSS rule, what shape will the box have when rendered in the browser?
border-radius: 50%;
AA rectangle with slightly rounded corners
BA square with sharp corners
CA perfect circle if the box is square, otherwise an ellipse
DA triangle shape
Attempts:
2 left
💡 Hint
Think about how percentage values affect the corners relative to the box size.
📝 Syntax
advanced
2:00remaining
Which CSS rule applies border-radius only to the top-left and bottom-right corners?
You want to round only the top-left and bottom-right corners of a box with 15px radius. Which CSS code achieves this?
Aborder-top-left-radius: 15px; border-bottom-right-radius: 15px;
Bborder-radius: 0 15px 15px 0;
Cborder-radius: 15px 0 0 15px;
Dborder-radius: 15px 0 15px 0;
Attempts:
2 left
💡 Hint
Remember the order of values in the four-value border-radius shorthand: top-left, top-right, bottom-right, bottom-left.
layout
advanced
2:00remaining
How does border-radius affect the layout of inline elements?
If you apply border-radius: 20px; to an inline element like <span> with background color, what will happen?
AThe corners will be rounded but the element's box will only cover the text area
BThe border-radius will be ignored on inline elements
CThe element will become a block and take full width
DThe element will overflow outside its container
Attempts:
2 left
💡 Hint
Think about how inline elements behave with background and border styles.
accessibility
expert
2:00remaining
Why should you be careful using large border-radius values on focus outlines for accessibility?
When styling focus outlines with large border-radius values, what accessibility issue might occur?
AThe element will become unclickable
BThe element will lose keyboard focus functionality
CScreen readers will not announce the element
DThe focus outline may become hard to see or disconnected from the element
Attempts:
2 left
💡 Hint
Focus outlines help users see which element is active. Think about visual clarity.