+25 XP
Lesson 28 - CSS Basics

CSS Borders

Add beautiful borders around your elements

Welcome to CSS Borders!

Borders are lines that go around elements. They help make things stand out and look organized!

I have a blue border!

I have a dashed green border!

I have a dotted purple border!

I have a thick double coral border!

Why Use Borders?

  • Make elements stand out from the background
  • Separate different sections of your page
  • Create boxes and frames
  • Add visual interest to your design