CSS & Design

CSS checkbox

Draw a square checkbox and copy the CSS.

In the browser

The box is drawn in this tab. Copy the CSS into your stylesheet.

About this tool

Draw a square checkbox and copy the CSS.

Choose the side length and the stroke color, then toggle the checked preview. The declaration sets width, height, a two-pixel border, and either a filled or empty background. It is a visual box, not a form control with a name or value.

A real checkbox still needs an input in your HTML if you want a submitted value. This page only paints the look. It does not store a preference and it does not replace the browser’s native control.

Read the privacy line on this page before you use the result in public.

Quick steps

  1. Draw a square checkbox and copy the CSS.
  2. Choose the side length and the stroke color, then toggle the checked preview. The declaration sets width, height, a two-pixel border, and either a filled or empty background. It is a visual box, not a form control with a name or value.
  3. A real checkbox still needs an input in your HTML if you want a submitted value. This page only paints the look. It does not store a preference and it does not replace the browser’s native control.

Read the privacy line on this page before you use the result in public.

FAQ

Draw a square checkbox and copy the CSS.

Choose the side length and the stroke color, then toggle the checked preview. The declaration sets width, height, a two-pixel border, and either a filled or empty background. It is a visual box, not a form control with a name or value.

A real checkbox still needs an input in your HTML if you want a submitted value. This page only paints the look. It does not store a preference and it does not replace the browser’s native control.

Read the privacy line on this page before you use the result in public.

A useful next step

Site policies: Privacy · Terms