CSS li list, margin from the left - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Element

Description

CSS li list, margin from the left

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">
html, body {
   font-family:Myriad Pro, sans-serif;
   font-size:19px;
   color:Chartreuse;
   margin:0px;
   padding:0px;
   background:url('https://www.java2s.com/style/demo/Google-Chrome.png');
}

#container {<!--  ww w.java  2  s.c  o m-->
   width:891px;
   height:531px;
   margin:37px auto;
}

#userList {
   width:229px;
   height:356px;
   float:right;
   border:2px solid yellow;
}

.users li {
   list-style-type:none;
   background-color:blue;
   width:100%;
   height:51px;
   border-bottom:2px solid pink;
}

ul {
   padding:0px;
}
</style> 
 </head> 
 <body> 
  <br> 
  <br> 
  <div id="userList"> 
   <ul class="users"> 
    <li> <img src="https://www.java2s.com/style/demo/InternetExplorer.png">Lorem ipsum dolor s</li> 
    <li> <img src="https://www.java2s.com/style/demo/Google-Chrome.png">Lorem ipsum do</li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials