CSS : Html Tags UL

 ul text-align: center;

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title></title>
<style rel="stylesheet" type="text/css">
#footer ul {
  width: 1000px;
  text-align: center;
}
#footer li {
  display: inline;
  list-style-type: none;
  line-height: 44px;
}
#footer li a {
  color: #574621;
  text-decoration: none;
  margin: 0 10px;
}
#footer li a:visited {
  text-decoration: none
}
#footer li a:hover {
  text-decoration: underline
}
</style>
</head>
<body>
  <div id="footer">
    <ul>
      <li><a href="#">Home</a>|</li>
      <li><a href="#">About our Hotel</a>|</li>
      <li><a href="#">Services</a>|</li>
      <li><a href="#">Photogallery</a>|</li>
      <li><a href="#">Testimonials</a>|</li>
      <li><a href="#">Locations</a>|</li>
      <li><a href="#">Contacts</a></li>
    </ul>

  </div>  
  
</body>

</html>
Setting style for UL inside a DIV
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"
  xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title></title>
<style rel="stylesheet" type="text/css">
#footer ul {
  width: 1000px;
  text-align: center;
}
#footer li {
  display: inline;
  list-style-type: none;
  line-height: 44px;
}
#footer li a {
  color: #574621;
  text-decoration: none;
  margin: 0 10px;
}
#footer li a:visited {
  text-decoration: none
}
#footer li a:hover {
  text-decoration: underline
}
</style>
</head>
<body>
  <div id="footer">
    <ul>
      <li><a href="#">Home</a>|</li>
      <li><a href="#">About our Hotel</a>|</li>
      <li><a href="#">Services</a>|</li>
      <li><a href="#">Photogallery</a>|</li>
      <li><a href="#">Testimonials</a>|</li>
      <li><a href="#">Locations</a>|</li>
      <li><a href="#">Contacts</a></li>
    </ul>

  </div>  
  
</body>

</html>
UL for navigation
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css" media="all">
ul {float: left; margin: 2.5em; padding: 0; width: 13em;}
.navlinks {border-top: 1px solid #787;font: medium Georgia;}
.navlinks li {list-style: none; border-bottom: 1px solid #787;}
.navlinks a {padding: 0.33em;text-decoration: none; color: .666;}
.navlinks a {background: #BCB;}
#two a {display: block;}
</style>
</head>
<body>


<ul class="navlinks" id="two">
<li id="archLink"><a href="thoughts/">Archives</a></li>
<li id="cssLink"><a href="css/">CSS</a></li>
<li id="toolsLink"><a href="tools/">Toolbox</a></li>
<li id="writeLink"><a href="writing.html">Writing</a></li>
<li id="speakLink"><a href="talks/">Speaking</a></li>
<li id="otherLink"><a href="/other/">Leftovers</a></li>
<li id="aboutsite"><a href="/ui/about.html">Title</a></li>
</ul>
</body>
</html>

UL float: right

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<style rel="stylesheet" type="text/css">

#bottom_menu {
  width: 633px;
  float: left;
  padding: 30px 30px 0 0;
}

#footer {
  height: 153px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #9A9A9A;
}

#footer ul {
  display: block;
  float: right
}

#footer li {
  list-style-type: none;
  display: inline;
}

#footer li a {
  color: #9A9A9A;
  margin: 0 10px;
  text-decoration: none
}

#footer li a:visited {
  text-decoration: none
}

#footer li a:hover {
  text-decoration: underline
}
</style>
</head>
<body>
    <div id="footer">
      <div id="bottom_menu">
        <ul>
          <li><a href="#">Home</a></li>
          <li>|<a href="#">About me</a></li>
          <li>|<a href="#">Contacts</a></li>
        </ul>
      </div>
    </div>
</body>
</html>
UL LI based menu
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"
  xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title></title>
<style rel="stylesheet" type="text/css">

#menu {
  padding: 0 90px 42px 298px;
  float: left;
}

#menu li {
  display: inline;
  list-style-type: none;
}

#menu li a {
  display: block;
  float: left;
  font-family: Tahoma, sans-serif;
  font-size: 11px;
  color: red;
  font-weight: bold;
  text-decoration: none;
  background-position: top left;
  background-repeat: no-repeat;
  margin: 0 1px 0 0;
  height: 31px;
  line-height: 31px;
  text-align: center;
}
</style>
</head>
<body>
        <ul id="menu">
          <li><a href="#" class="but1">HOME</a></li>
          <li><a href="#" class="but2">ABOUT US</a></li>
          <li><a href="#" class="but3">SALE</a></li>
          <li><a href="#" class="but4">RENTING</a></li>
          <li><a href="#" class="but5">CONTACTS</a></li>
        </ul>
</body>

</html>
UL height: 25px;
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title></title>
<style rel="stylesheet" type="text/css">

#header {
  background: url(images/top_bg.jpg) top left no-repeat;
  padding: 33px 0 0 0;
  text-align: center;
}

#logo {
  display: block;
}

#header span {
  font-family: "Times New Roman", Times, serif;
  font-size: 9px;
  color: #786B50;
  text-transform: uppercase;
  display: block;
  float: left;
  letter-spacing: 6px;
  width: 1000px;
  text-align: center;
}

#menu {
  width: 1000px;
  float: left;
  margin: 12px 0 1px 0;
  display: block;
  height: 26px; /
  height: 25px;
}

#menu li {
  display: inline;
  padding: 0 19px;
  line-height: 25px;
}

#menu a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #FCEACE;
  text-decoration: none;
}
</style>
</head>
<body>
  <div id="header">
    <span>title</span>
    <ul id="menu">
      <li><a href="#">Home</a></li>
      <li><a href="#">About our Hotel</a></li>
      <li><a href="#">Services</a></li>
      <li><a href="#">Photogallery</a></li>
      <li><a href="#">Testimonials</a></li>
      <li><a href="#">Locations</a></li>
      <li><a href="#">Contacts</a></li>
    </ul>
    <img src="images/image.jpg" alt="" width="1000" height="311" /><br />
  </div>
</body>
</html>
UL display: block;
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title></title>
<style rel="stylesheet" type="text/css">

#header {
  background: url(images/top_bg.jpg) top left no-repeat;
  padding: 33px 0 0 0;
  text-align: center;
}

#logo {
  display: block;
}

#header span {
  font-family: "Times New Roman", Times, serif;
  font-size: 9px;
  color: #786B50;
  text-transform: uppercase;
  display: block;
  float: left;
  letter-spacing: 6px;
  width: 1000px;
  text-align: center;
}

#menu {
  width: 1000px;
  float: left;
  margin: 12px 0 1px 0;
  display: block;
  height: 26px; /
  height: 25px;
}

#menu li {
  display: inline;
  padding: 0 19px;
  line-height: 25px;
}

#menu a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #FCEACE;
  text-decoration: none;
}
</style>
</head>
<body>
  <div id="header">
    <span>title</span>
    <ul id="menu">
      <li><a href="#">Home</a></li>
      <li><a href="#">About our Hotel</a></li>
      <li><a href="#">Services</a></li>
      <li><a href="#">Photogallery</a></li>
      <li><a href="#">Testimonials</a></li>
      <li><a href="#">Locations</a></li>
      <li><a href="#">Contacts</a></li>
    </ul>
    <img src="images/image.jpg" alt="" width="1000" height="311" /><br />
  </div>
</body>
</html>

UL margin: 12px 0 1px 0;

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title></title>
<style rel="stylesheet" type="text/css">

#header {
  background: url(images/top_bg.jpg) top left no-repeat;
  padding: 33px 0 0 0;
  text-align: center;
}

#logo {
  display: block;
}

#header span {
  font-family: "Times New Roman", Times, serif;
  font-size: 9px;
  color: #786B50;
  text-transform: uppercase;
  display: block;
  float: left;
  letter-spacing: 6px;
  width: 1000px;
  text-align: center;
}

#menu {
  width: 1000px;
  float: left;
  margin: 12px 0 1px 0;
  display: block;
  height: 26px; /
  height: 25px;
}

#menu li {
  display: inline;
  padding: 0 19px;
  line-height: 25px;
}

#menu a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #FCEACE;
  text-decoration: none;
}
</style>
</head>
<body>
  <div id="header">
    <span>title</span>
    <ul id="menu">
      <li><a href="#">Home</a></li>
      <li><a href="#">About our Hotel</a></li>
      <li><a href="#">Services</a></li>
      <li><a href="#">Photogallery</a></li>
      <li><a href="#">Testimonials</a></li>
      <li><a href="#">Locations</a></li>
      <li><a href="#">Contacts</a></li>
    </ul>
    <img src="images/image.jpg" alt="" width="1000" height="311" /><br />
  </div>
</body>
</html>

UL float: left;

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title></title>
<style rel="stylesheet" type="text/css">

#header {
  background: url(images/top_bg.jpg) top left no-repeat;
  padding: 33px 0 0 0;
  text-align: center;
}

#logo {
  display: block;
}

#header span {
  font-family: "Times New Roman", Times, serif;
  font-size: 9px;
  color: #786B50;
  text-transform: uppercase;
  display: block;
  float: left;
  letter-spacing: 6px;
  width: 1000px;
  text-align: center;
}

#menu {
  width: 1000px;
  float: left;
  margin: 12px 0 1px 0;
  display: block;
  height: 26px; /
  height: 25px;
}

#menu li {
  display: inline;
  padding: 0 19px;
  line-height: 25px;
}

#menu a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #FCEACE;
  text-decoration: none;
}

</style>
</head>
<body>
  <div id="header">
    <span>title</span>
    <ul id="menu">
      <li><a href="#">Home</a></li>
      <li><a href="#">About our Hotel</a></li>
      <li><a href="#">Services</a></li>
      <li><a href="#">Photogallery</a></li>
      <li><a href="#">Testimonials</a></li>
      <li><a href="#">Locations</a></li>
      <li><a href="#">Contacts</a></li>
    </ul>
    <img src="images/image.jpg" alt="" width="1000" height="311" /><br />
  </div>

</body>

</html>
UL width: 1000px;
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title></title>
<style rel="stylesheet" type="text/css">

#header {
  background: url(images/top_bg.jpg) top left no-repeat;
  padding: 33px 0 0 0;
  text-align: center;
}

#logo {
  display: block;
}

#header span {
  font-family: "Times New Roman", Times, serif;
  font-size: 9px;
  color: #786B50;
  text-transform: uppercase;
  display: block;
  float: left;
  letter-spacing: 6px;
  width: 1000px;
  text-align: center;
}

#menu {
  width: 1000px;
  float: left;
  margin: 12px 0 1px 0;
  display: block;
  height: 26px; /
  height: 25px;
}

#menu li {
  display: inline;
  padding: 0 19px;
  line-height: 25px;
}

#menu a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #FCEACE;
  text-decoration: none;
}

</style>
</head>
<body>
  <div id="header">
    <span>title</span>
    <ul id="menu">
      <li><a href="#">Home</a></li>
      <li><a href="#">About our Hotel</a></li>
      <li><a href="#">Services</a></li>
      <li><a href="#">Photogallery</a></li>
      <li><a href="#">Testimonials</a></li>
      <li><a href="#">Locations</a></li>
      <li><a href="#">Contacts</a></li>
    </ul>
    <img src="images/image.jpg" alt="" width="1000" height="311" /><br />
  </div>

</body>

</html>

ul list-style-type: disc; list-style-image: url(bullet.gif);

<!DOCTYPE html>

<html>
<head>
<title></title>
<style type="text/css">
ul {
 list-style-type: disc;
 list-style-image: url(bullet.gif);
}
</style>
</head>

<body>

  <p>Consectetuer adipiscing elit: 
    
    <ul>
    <li>Vivamus purus enim</li> 
    <li>Sollicitudin vitae</li>
    <li>Tincidunt sit amet</li> 
    <li>Pretium vel, libero</li> 
    </ul>
<p>Sed sed nisi. Morbi gravida, odio at aliquam lobortis, urna massa vehicula mi, et posuere tortor elit eget est. Nulla ligula. Etiam pulvinar. Quisque ante quam, ultricies quis, rutrum dignissim, fermentum a, est. Nulla felis dolor, tempor non, posuere ut, ornare ac, eros. Cras in metus. Sed rutrum lectus ut nibh. Pellentesque ipsum.</p>
  
</body>
</html>

ul margin-left: 40px; padding-left: 0px;

<html>
<head>
<title></title>
<style type="text/css">
ul {
 margin-left: 40px;
 padding-left: 0px;
}

</style>
</head>

<body>

  <p>Consectetuer adipiscing elit: 
    
    <ul>
    <li>Vivamus purus enim</li> 
    <li>Sollicitudin vitae</li>
    <li>Tincidunt sit amet</li> 
    <li>Pretium vel, libero</li> 
    </ul>
<p>Sed sed nisi. Morbi gravida, odio at aliquam lobortis, urna massa vehicula mi, et posuere tortor elit eget est. Nulla ligula. Etiam pulvinar. Quisque ante quam, ultricies quis, rutrum dignissim, fermentum a, est. Nulla felis dolor, tempor non, posuere ut, ornare ac, eros. Cras in metus. Sed rutrum lectus ut nibh. Pellentesque ipsum.</p>
  
</body>
</html>

List with background

<html>
     <head>
      <meta http-equiv="content-type" content="text/xhtml; charset=windows-1252" />
      <meta http-equiv="content-language" content="en-us" />
        <style type="text/css">
            ul#top {
                color: black;
            }

            ul#top li a {
                color: red;   
                background: pink;
            }

        </style>
    </head>
    <body>
        <h1>This is the title</h1>
        <div>
            <h2>This is the sub title</h2>
            <ul id='top'>
                <li><a href='#'>This is a test. </a></li>
                <li><a href='#'>This is a test. </a></li>
                <li><a href='#'>This is a test. </a></li>
                <li><a href='#'>This is a test. </a></li>
                <li><a href='#'>This is a test. </a></li>
                <li><a href='#'>This is a test. </a></li>
            </ul>
            <h3 id=''>header 3<a href=''></a></h3>
            <p>
                This is a test. 
            </p>
        </div>
    </body>
</html>

Add alignment line for UL

<html>
<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 {
    margin: 6px 15px;
    padding: 0 15px;
    font-size: 90%;
    color: #000;
    border-left: 1px dotted #999;
    }

  #divID #sitemap li ul li ul {
    border: none;
    }
  
  #divID #sitemap li ul li ul li {
    font-weight: normal;
    padding-left: 16px;
    background: red;
    }
    

  </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>

turns off bullets for multi-level bullets

<html>
<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>
Add style to multi-level UL
<html>
<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 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>
Nested UL and LI tags
<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title></title>
  <style type="text/css" media="screen">
  div {
    margin-bottom: 30px;
  }  
  
  </style>
</head>

<body>

<div id="fig9_1">
  <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>

Use DIV to wrap a UL

<html>
<head>
<title></title>
<style type="text/css">
#navsite ul {
 list-style: none; 
 margin: 0; 
 padding: 0; 
}
</style>
</head>

<body>
  <div id="navsite">
   <p>Site navigation:</p>
   <ul>
    <li><a href="">Home</a></li>
    <li><a href="">About</a></li> 
    <li><a href="">Archives</a></li>
    <li><a href="">Writing</a></li>
    <li><a href="">Speaking</a></li>
    <li><a href="">Contact</a></li>
   </ul>
  </div>
</body>
</html>

Set margin for UL and LI

<html>
<head>
<title></title>
<style type="text/css">
.tblcontent p {
 margin: 0;
 padding: 0;
 font-weight: bold;
}
.tblcontent ul {
 margin: 0;
 padding: 0;
}
.tblcontent li {
 margin: 0;
 padding: 0;
 line-height: 1.5;
}
.tblcontent li a {
 padding-left: 15px;
 background: red;
}
</style>
</head>

<body>
  <table>
    <tr>
     <td>
   <div class="tblcontent">
   <p>To-do list on your day off.</p>
   <ul>
     <li><a href="">W</a></li>
     <li><a href="">W</a></li>
     <li><a href="">W</a></li>
    <li>no link.</li>
   </ul>  
  </div>
  </td>
  </tr>
  </table>
</body>
</html>

ul padding: 0 0 0 1em;

<html>
<head>
<title></title>
<style type="text/css">
li {
 list-style-position: inside;
 width: 33%;
 padding: 0;
 margin: 0;
}
ul {
 margin: 0;
 padding: 0 0 0 1em;
}
</style>
</head>
<body>
  <h3>
   Table of Contents
  </h3>
  <p>
   As proposed, the contents of the paper will contain the 
  following sections:
  </p>
  <ul>
   <li>A</li>
   <li>B</li>
   <li>C</li>
   <li>D</li>
   <li>E</li>
  </ul>
  <p>
   If there are any objections to how these sections are divided, 
  please let <a href="nick@heatvision.com">Nicholas</a> know about 
  it.
  </p>
</body>
</html>

UL margin: 0

<html>
<head>
<title></title>
<style type="text/css">
ul {
 list-style: none;
 margin: 0;
 padding: 0 0 0 1em;
 text-indent: -1em; 
}
li {
 width: 33%;
 padding: 0;
 margin: 0 0 0.25em 0;
}
li:before {
 content: "\00BB \0020"; 
}
</style>
</head>

<body>
    <ul>
    <li>V</li> 
    <li>S</li>
    <li>T</li> 
    <li>P</li> 
    </ul>
</body>
</html>
UL text index: -1em
<html>
<head>
<title></title>
<style type="text/css">
ul {
 list-style: none;
 margin: 0;
 padding: 0 0 0 1em;
 text-indent: -1em; 
}
li {
 width: 33%;
 padding: 0;
 margin: 0 0 0.25em 0;
}
li:before {
 content: "\00BB \0020"; 
}
</style>
</head>
<body>
    <ul>
    <li>V</li> 
    <li>S</li>
    <li>T</li> 
    <li>P</li> 
    </ul>
</body>
</html>
UL width: 36%
<html>
<head>
<title></title>
<style type="text/css">
li {
 border-top: 1px solid black;
 padding: .3em 0;
}

ul {
 margin-left: 40px;
 padding-left: 0px;
 border-bottom: 1px solid black; 
 list-style: none;
 width: 36%;
}
</style>
</head>
<body>
    <ul>
    <li>V</li> 
    <li>S</li>
    <li>T</li> 
    <li>P</li> 
    </ul>
</body>
</html>
UL list style: none
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">
li {
 border-top: 1px solid black;
 padding: .3em 0;
}

ul {
 margin-left: 40px;
 padding-left: 0px;
 border-bottom: 1px solid black; 
 list-style: none;
 width: 36%;
}
</style>
</head>

<body>
    <ul>
    <li>V</li> 
    <li>S</li>
    <li>T</li> 
    <li>P</li> 
    </ul>

</body>
</html>
UL border bottom: 1px solid black
<html>
<head>
<title></title>
<style type="text/css">
li {
 border-top: 1px solid black;
 padding: .3em 0;
}

ul {
 margin-left: 40px;
 padding-left: 0px;
 border-bottom: 1px solid black; 
 list-style: none;
 width: 36%;
}
</style>
</head>
<body>
    <ul>
    <li>V</li> 
    <li>S</li>
    <li>T</li> 
    <li>P</li> 
    </ul>
</body>
</html>

UL margin left and padding left

<html>
<head>
<title></title>
<style type="text/css">
ul {
 margin-left: 40px;
 padding-left: 0px;
}
</style>
</head>

<body>


    <ul>
    <li>V</li> 
    <li>S</li>
    <li>T</li> 
    <li>P</li> 
    </ul>
</body>
</html>