<?xml version="1.0" encoding="utf-8"?>

CSS width property

CSS width property

The width property allows you to set how wide your container will be. By default, it only affects the content width and doesn't include padding, borders, or margins (you can change it with the box-sizing property).

The most common types of values for this property are length values in px or percentage values.

Improve your UX & Product skills with interactive courses that actually work