Change Language


Follow Navioo On Twitter

width

Specifies the width (in pixels, points, or as a percentage) of the content of the element.

Browser/User Agent Support

IE Netscape Mozilla Opera Safari
4.0+ 4.0+ 1.0+ 4.0+ 1.0+

Usage

Example values: 100px, 50%, etc.

Values

* Specify a value for width that is not on this list.
inherit Inherit the value from the parent element.
auto Width to be determined by the window or parent element.

Example

For additional information and a demonstration of the width attribute, see the demo page on quirksmode:

http://www.navioo.com/html_css/table_column_size_338.htm

Remarks

width does not include the margins, padding, or borders of an element.

Availability

W3C CSS2

Related

Examples -> Source code Demo online - > width:

Ajax Javascript feed

↑ Grab this Headline Animator