HTML CSS examples for CSS Widget:UL Element
Li ordering one after another
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> li {<!--from w w w . ja v a 2s . co m--> clear:both; } img { width:51px; height:51px; float:left; margin-right:7px; } span { padding-left:43px; } </style> </head> <body> <li id="2" class="option"> <img class="profile_image" src="https://www.java2s.com/style/demo/Opera.png" alt="prov kot"> <span class="name">Lorem ipsum dolo</span> <br>Lorem ipsum dolo</li> <li id="2" class="option"> <img class="profile_image" src="https://www.java2s.com/style/demo/Google-Chrome.png" alt="prov kot"> <span class="name">Lorem ipsum dolo</span> <br>Lorem ipsum dolo</li> <li id="2" class="option"> <img class="profile_image" src="https://www.java2s.com/style/demo/Safari.png" alt="prov kot"> <span class="name">Lorem ipsum dolo</span> <br>Lorem ipsum dolo</li> <li id="2" class="option"> <img class="profile_image" src="https://www.java2s.com/style/demo/InternetExplorer.png" alt="prov kot"> <span class="name">Lorem ipsum dolo</span> <br>Lorem ipsum dolo</li> <li id="2" class="option"> <img class="profile_image" src="https://www.java2s.com/style/demo/Safari.png" alt="prov kot"> <span class="name">Lorem ipsum dolo</span> <br>Lorem ipsum dolo</li> <li id="2" class="option"> <img class="profile_image" src="https://www.java2s.com/style/demo/InternetExplorer.png" alt="prov kot"> <span class="name">Lorem ipsum dolo</span> <br>Lorem ipsum dolo</li> </body> </html>