'compact' Example : List Bullets « HTML « JavaScript DHTML






'compact' Example

    
<html>
<body>
<dl id="myDL"> 
    <dt>Definition List:</dt>
    <dt>1.</dt><dd>Definition 1.</dd>
    <dt>2.</dt><dd>Definition 2.</dd>
    <dt>3</dt><dd>Definition 3.</dd>
</dl>
<button onclick="myDL.compact=true;">Compact</button>
<button onclick="myDL.compact=false;">De-Compact</button>
</body>
</html>

    
      
      








Related examples in the same category

1.List type
2.List Start property
3.Using firstChild and lastChild Properties
4.Change Bullets
5.Change bullet style
6.Add bullets (item)