<!DOCTYPE html> <html> <head> <style> ul{display:inline-block;} </style> </head> <body> <ul> <li>First list item</li> <li>Second list item</li> <li>Third list item</li> </ul> <ul> <li>First list item</li> <li>Second list item</li> <li>Third list item</li> </ul> <p><strong>NOTE: </strong>inline-block means the parent element is inline and the child elements are block level.</p> </body> </html>
Run
×
Share