'div' Example : div : Styles Tags HTML CSS TUTORIALS


HTML CSS TUTORIALS » Styles Tags » div »

 

'div' Example



    
<html>
<head>
<title>div element example</title>
</head>
<body>
   <div id="Layer1" style="position:absolute; 
                           visibility:visible; left:166px; 
                           top:312px; 
                           width:300px; 
                           height:294px; 
                           background-color:#FFFFCC; 
                           layer-backgroundcolor:#FFFFCC; 
                           border:1px none #000000; 
                           z-index:1"
     <p><img src="http://www.navioo.com/style/logo.png" 
             alt="" 
             width="300" 
             height="225"></p>
     <p align="center">This div element contains an image plus a center aligned text.</p>
   </div>
   <div id="Layer2" style="position:absolute; 
                           visibility:visible; 
                           left:499px; 
                           top:338px; 
                           width:315px; 
                           height:174px; 
                           background-color:#CCFFCC; 
                           layer-background-color:#CCFFCC; 
                           border:1px none #000000; 
                           z-index:2"
     <p>Text.</p>
   </div>
</body>
</html>
           
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Styles Tags
» div