Box Properties

Width

 
 

Box Properties

Top Margin
Right Margin
Bottom Margin
Left Margin
Margin
Top Padding
Right Padding
Bottom Padding
Left Padding
Padding
Top Border Width
Right Border Width
Bottom Border Width
Left Border Width
Border Width
Border Color

Border Style
Top Border
Right Border
Bottom Border
Left Border
Border
Width
Height
Float
Clear

 

Appearance:

width: <value>

Possible Values:

<length> | <percentage> | auto

Initial Value:

auto

Applies to:

Block-level and replaced elements

Inherited:

No

Each block-level or replaced element can be given a width, specified as a length, a percentage, or as auto. (A replaced element is one for which only the intrinsic dimensions are known; HTML replaced elements include IMG, INPUT, TEXTAREA, SELECT, and OBJECT.) The initial value for the width property is auto, which results in the element's intrinsic width (i.e., the width of the element itself, for example the width of an image). Percentages refer to the parent element's width. Negative values are not allowed.

This property could be used to give common widths to some INPUT elements, such as submit and reset buttons:


INPUT.button { width: 10em }

 

 

BreBru.Com Extra Information Techonology HTML