You are here : cssCSS 3width

width - CSS 3

The width property sets the width of an element.Note: The width property does not include padding, borders, or margins; 
it sets the width of the area inside the padding, border, and margin of the 
element!Note: The min-width and
max-width properties override width.


Syntax

width: auto|value|initial|inherit;


Example

p.ex
	{
	   
	height: 100px;
	   
	width: 100px;
	}


Output / Return Value


Limitations


Alternatives / See Also


Reference