make definitions of definition list in two columns - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:2 Column

Description

make definitions of definition list in two columns

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

dl { position: relative; }
dd { margin-left: 100px; }
dt { position: absolute; }


      </style> 
 </head> <!--from   w  ww . ja  v  a 2s. c  om-->
 <body> 
  <dl> 
   <dt>
     Director: 
   </dt> 
   <dd>
     Person A 
   </dd> 
   <dt>
     Writer: 
   </dt> 
   <dd>
     Person B 
   </dd> 
   <dd>
     Person B 
   </dd> 
   <dt>
     Cast: 
   </dt> 
   <dd>
     Person C 
   </dd> 
   <dd>
     Person D 
   </dd> 
   <dd>
     Person E 
   </dd> 
   <dd>
     Person F 
   </dd> 
   <dd>
     Person G 
   </dd> 
   <dd>
     Person H 
   </dd> 
   <dd>
     Person I 
   </dd> 
  </dl>  
 </body>
</html>

Related Tutorials