Skip to main content

Controls

3px
0px

Preview

Presets

Generated CSS

border: 3px solid #3b82f6;

Overview

Customize borders with control over width, style (solid, dashed, dotted, etc.), and color. Set uniform border-radius or adjust each corner individually for unique shapes. Create anything from subtle outlines to fully rounded pill buttons.

Border Properties in CSS

CSS borders define the edge of an element. You can control the width, style, and color of borders, as well as round the corners using border-radius. Borders are fundamental to creating visual boundaries and structure in web design.

Creating Buttons and Cards

Borders are essential for creating buttons, cards, form inputs, and other UI components. Combined with border-radius, padding, and box-shadow, they help define the visual hierarchy and interactive elements of your interface.

Border-Radius for Modern Design

Border-radius creates rounded corners, a staple of modern web design. You can apply uniform radius to all corners or customize each corner individually for unique shapes. Very large values create pill-shaped elements, perfect for tags and badges.

Different Border Styles Explained

  • Solid: A continuous, solid line
  • Dashed: A series of short line segments
  • Dotted: A series of round dots
  • Double: Two parallel solid lines
  • Groove/Ridge/Inset/Outset: 3D-styled borders with varying effects

Browser Support

Border properties are universally supported across all browsers. Border-radius is supported in all modern browsers without vendor prefixes.