![]() |
The width property specifies the width of an element.
| Values | Description |
| auto | Default. The browser calculates the width of the element. |
| percentage | Defines the width in percentage of the parent element's width. |
| length<unit> | Defines the exact width of the element. For example: 5px. The unit can be any of px (pixels), mm (millimeters), cm(centimeters), in (inches), pt (points), pc (picas), em (the element's font height) or ex (the element's x-height). |

Comments