HTML CSS examples for CSS Widget:UL Horizontal
Display a list inline
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <!--from w w w .j a v a 2s. co m--> <body> <p> </p> <ul style="display:inline; list-style-type: none;"> <li style="background:url('no-color.png') repeat !important; padding:5px; display:inline;">Lorem ips</li> <li style="background:none repeat scroll 0 0 rgba(255, 57, 65, 0.9) !important;padding:5px;display:inline;">Lorem ips</li> <li style="background:none repeat scroll 0 0 rgba(255, 103, 57, 0.9) !important;padding:5px;display:inline;">Lorem ipsum d</li> <li style="background:none repeat scroll 0 0 rgba(255, 218, 57, 0.9) !important;padding:5px;display:inline;">Lorem ip</li> <li style="background:none repeat scroll 0 0 rgba(193, 241, 78, 0.9) !important;padding:5px;display:inline;">Lorem i</li> <li style="background:none repeat scroll 0 0 rgba(29, 195, 246, 0.9) !important;padding:5px;display:inline;">Lorem ipsum</li> <li style="background:none repeat scroll 0 0 rgba(29, 195, 246, 0.9) !important;padding:5px;display:inline;">Lorem </li> </ul> <p></p> </body> </html>