Demo: width

We will position the elements with this style sheet:

#left  { position: absolute; 
   top: 100px; width: 240px; 
   color: red  }

#right { position: absolute; 
   top: 100px; width: 240px;  
   color: blue; left: 50%  }

To demonstrate the width property, we will position two elements side by side, giving each a width of 240 pixels.