# Border

*noun*

say it: **“BOR-der”** **/ˈbɔrdər/**

The line drawn around an element, between its padding and its margin, set with a width, a style such as solid or dashed, and a color.

## What does the `border` property do?

`border` draws a line around an element: its width, style and color.

```css
.input { border: 1px solid #ccc; }
```

## In a sentence

- “I gave each trading card a 3px solid gold **border** so it looked like a real card.”

Level: Novice · [More CSS terms at this level](https://www.ask-codey.com/glossary?category=css&level=1)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/border
