Set the width of a box with CSS

CSSWeb DevelopmentFront End Technology

The width property is used to set the width of a box. They can take values of a length, a percentage, or the keyword auto.

Example

You can try to run the following code to set the width −

<html>
</html>