Img inside <li> with property display: inline - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Horizontal

Description

Img inside <li> with property display: inline

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">
#listaAuto, li {<!--  w  w  w .jav a  2s  . c om-->
   list-style:none;
   padding:6px;
}

li {
   float:left;
   display:inline;
   border:2px solid Chartreuse;
}
</style> 
 </head> 
 <body> 
  <div> 
   <ul id="listaAuto"> 
    <li> <img src="https://www.java2s.com/style/demo/InternetExplorer.png" width="121.33" height="75.92"> </li> 
    <li> <img src="https://www.java2s.com/style/demo/InternetExplorer.png" width="121.33" height="75.92"> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials