--- title: width slug: Web/CSS/width tags: - Referencia_CSS translation_of: Web/CSS/width ---

{{ CSSRef() }}

Resumo

A propriedade width é usada para configurar a largura dada a um elemento.

Sintaxe

 width: [ <length> || <percentage> ] auto | inherit

Valores

Exemplos

View Live Examples

table{width: 100%;}

img{width: 200px;}

form{width: auto;}

== Notas ==

Especificações

Compatibilidade com navegadores

Navegador Versão mais antiga
Internet Explorer 4
Netscape 4
Opera 3.5

Veja também

box model, {{ Cssxref("height") }}, {{ Cssxref("-moz-box-sizing") }}

Categorias

Interwiki Language Links

{{ languages( { "en": "en/CSS/width", "fr": "fr/CSS/width" } ) }}