padding-left: 0px : padding left « CSS « HTML / CSS






padding-left: 0px

   




<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<style type="text/css">

ul {
  width: 33%;
  margin-left: 40px;
  padding-left: 0px;
}
</style>
</head>
<body>

<h3>Heading 2</h3>

<ul>
  <li>ONE</li>
  <li>TWO</li>
  <li>THREE</li>
  <li>FOUR</li>
  <li>FIVE</li>
</ul>

</body>
</html>

   
    
  








Related examples in the same category

1.'padding-left' Example
2.padding-left: 8px;
3.padding-left: 1.5em;
4.padding-left: 1cm; padding-right: .5cm;
5.Independently set padding-left, padding-right, padding-top, and padding-bottom.
6.The element's background is displayed in the padding area.
7.padding:0 is the default.
8.Combine negative text-indent and padding-left