Difference between revisions of "CSS GUIDE WIDTH"
(→Specification Conformance) |
(→Summary) |
||
Line 2: | Line 2: | ||
This property is used to set the width of a given element. | This property is used to set the width of a given element. | ||
− | Inherited: | + | * Applies to: all container elements |
+ | * Media: visual | ||
+ | * Inherited: no | ||
+ | * Percentages: yes | ||
== Syntax == | == Syntax == |
Latest revision as of 01:13, 12 December 2006
Contents
Summary
This property is used to set the width of a given element.
- Applies to: all container elements
- Media: visual
- Inherited: no
- Percentages: yes
Syntax
TARGET_ELEMENT{width:100%}
Legal Values
% - Value specified as a percentage of the browser window. length - Value specified as a length (i.e. px, cm or in) auto - The browser will calculate and select a width for the specified element.
Mozilla Recommended Values
Usage Examples
table{width: 100%;}
img{width: 200px;}
form{width: auto;}