turns off bullets for multi-level bullets : ul « Tags « HTML / CSS






turns off bullets for multi-level bullets

   

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title></title>
  <style type="text/css" media="screen">
  div {
    margin-bottom: 30px;
    }  
  #divID #sitemap {
    font-size: 140%;
    font-weight: bold;
    color: #f63;
    }
  
  #divID #sitemap li {
    list-style: none; 
    }
      
  #divID #sitemap li ul {
    font-size: 90%;
    color: #000;
    }

  
  </style>
</head>

<body>

<div id="divID">
  <ul id="sitemap">
    <li>This is a test. </li>
    <li>
    <ul>
      <li>This is a test. </li>
      <li>This is a test. 
      <ul>
        <li>Part I</li>
        <li>Part II</li>
      </ul>
      </li>
      <li>This is a test. </li>
    </ul>
    </li>
    <li>This is a test. </li>
  </ul> 
</div>

</body>
</html>

   
    
  








Related examples in the same category

1.'ul' creates an unordered (bulleted) list
2.UL tag
3.Define class for UL for border (1px solid black) and padding (40px)
4.UL margin left and padding left
5.UL border bottom: 1px solid black
6.UL list style: none
7.UL width: 36%
8.UL text index: -1em
9.UL margin: 0
10.UL padding: 0 0 0 1em
11.Set margin for UL and LI
12.Use DIV to wrap a UL
13.Turn off list style
14.Left margin for list
15.Nested UL and LI tags
16.Add style to multi-level UL
17.Add alignment line for UL
18.List with background
19.Advanced Lists: nested and ordered
20.ul margin-left: 40px; padding-left: 0px;
21.ul list-style-type: disc; list-style-image: url(bullet.gif);
22.ul padding: 0 0 0 1em;
23.UL width: 1000px;
24.UL float: left;
25.UL margin: 12px 0 1px 0;
26.UL display: block;
27.UL height: 25px;
28.UL LI based menu
29.UL LI based link list
30.UL float: right
31.UL for navigation
32.Setting style for UL inside a DIV
33.ul text-align: center;