border-width
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
Resumen
La propiedad border-width
define el ancho del borde.
Valor inicial
:medio
- Se aplica a: todos los elementos
Herencia
: no- Porcentajes: N/A
- Medio:
visual
Valor calculado
: largo absoluto o '0' si el estilo del borde es ninguno ('none') o 'hidden'.
Sintaxis
border-width: <border-width-value> {1,4} | heredado
Valores
Propiedades relacionadas
Ejemplos
Ver el ejemplo en vivo
element { border-width: thin; border-style: solid; border-color: #000; }
Especificaciones
Specification |
---|
CSS Backgrounds and Borders Module Level 3 # the-border-width |
Compatibilidad con navegadores
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
border-width |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.