Borders and Border Radius
Sizing ItemsBorders are the lines around an element. They can make boxes stand out, separate sections, or create shapes. Border radius lets you round corners for a softer look.
Border Style
The border-style property sets what kind of line the border is.
div {
border-style: solid;
}Common styles are:
solid→ a normal linedashed→ a line made of dashesdotted→ a line made of dotsdouble→ a double linenone→ no border at all
Keep reading this lesson
You've reached the end of the free preview. Unlock the rest of this lesson plus 12 more lessons in CSS.
- Unlimited coding questions
- Unlimited access to all classroom material
- Weekly live call for questions and guidance
- Mock exams marked by hand, with feedback
- 3,000 AI tutor tokens / month
- Personal SQL database (3 MB)
- Progress tracking
Cancel anytime.