How to use CSS Border Generator

Style a border and its corner radii, then copy the CSS.

  1. Adjust the controls — the preview updates live.
  2. Copy the generated CSS.
  3. Paste it into your stylesheet.

About CSS Border Generator

The CSS border shorthand sets width, style and colour in one line, such as border: 2px solid #333. border-radius rounds the corners; values go in the order top-left, top-right, bottom-right, bottom-left.

A radius of 50% on a square element makes a circle, and a large radius on a wide element makes a pill shape. Seeing every corner live makes it easy to get the shape right before copying the CSS.

Questions

How do I make a circle with CSS?

Give a square element border-radius: 50%.

Does a border add to an element’s size?

Yes, unless box-sizing: border-box is set, which includes borders in the width.

Ratings & reviews

No ratings yet. Signed-in users can rate this app.