CSS Tutorial

CSS Style

CSS Layout Style

CSS Float Style

CSS Reference

CSS width property




The CSS width property set a height an element.


Property Values


Properties Value Description
Syntax width:value;
value   Size_px
  %
  auto
  inherit
Allow to All elements
Inherited Yes

Example-Code:

<div style="width:200px; background-color:#FF9966;">Example is 
width property element. element backgroud color hexadecimal code.</div>
Online Try This Code Your Self....   »

Example-Result:

Example is width property element. element backgroud color hexadecimal code.