Tuesday, December 16, 2008

Understanding Div Style and Layouts




CSS Positioning




Positioning is one of the areas in which CSS provides formatting possibilities that are simply not available through HTML, and CSS positioning is not difficult. The essential properties used for positioning are:





  • Position


  • Left


  • Top


  • Z-Index


  • Width


  • Height


Positioning works reliably with the following two tags:





  • DIV [used for blocks]


  • SPAN [used for elements within blocks]