Difference between revisions of "CSS GUIDE WIDTH"
m (→Usage Examples) |
(→See Also) |
||
Line 26: | Line 26: | ||
== See Also == | == See Also == | ||
+ | [http://www.w3.org W3.org - Cascading Style Sheets ]<br /> | ||
+ | [http://www.w3schools.com/css/pr_dim_width.asp W3Schools] |
Revision as of 00:57, 12 December 2006
Contents
Summary
This property is used to set the width of a given element.
Inherited: No
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;}