Loading...
3 pixels converts to 0.1875rem when the root font-size is 16px (the browser default). This conversion is calculated by dividing the pixel value by the base font size: 3 ÷ 16 = 0.1875.
Formula
3px ÷ 16 = 0.1875rem
/* 3px as rem */
.element {
border-width: 0.1875rem; /* 3px */
}A value of 3px (0.1875rem) is commonly used for small borders, letter-spacing adjustments, and fine spacing. In responsive web design, using 0.1875rem instead of 3px ensures your borders and spacing scale proportionally when users change their browser font size settings.
REM units are relative to the root element's font-size, making them ideal for accessible, responsive designs. When you write 0.1875rem instead of 3px, your layout respects user preferences — if someone sets their browser to a larger font size for readability, all your rem-based values scale up proportionally.
| px | rem |
|---|---|
| 8 | 0.5 |
| 10 | 0.625 |
| 12 | 0.75 |
| 14 | 0.875 |
| 16 | 1 |
| 18 | 1.125 |
| 20 | 1.25 |
| 24 | 1.5 |
| 32 | 2 |
| 48 | 3 |
| 64 | 4 |
| 96 | 6 |
Convert any value instantly with our free PX to REM Converter.
Open PX to REM Converter →