CSS Width Property
CSS 1 |
CSS 2 |
CSS 3 |
|
|
|
|
Description
Specifies the content width of block-level boxes.
Syntax
width: [value];
Possible values
- [length]
- [percentage]
- auto
- inherit
Initial Value
Auto
Applies To
All elements except non-replaced inline elements, table rows, and row groups
Inherited
No
Media
Visual
Example
p {width: 150px;}