HTML CSS examples for CSS Widget:UL Alignment
Want to align three divs that contain lists horizontally
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> * {<!-- ww w .jav a 2 s. co m--> margin:0; padding:0; } div.wrapper { display:table; } .wrapper>div { display:table-cell; border:2px solid Chartreuse; padding:21px; } </style> </head> <body> <div class="wrapper"> <div> <ul> <li>Lo</li> <li>Lo</li> </ul> </div> <div> <ul> <li>Lo</li> <li>Lo</li> <li>Lo</li> <li>Lo</li> </ul> </div> <div> <ul> <li>Lo</li> <li>Lo</li> </ul> </div> </div> </body> </html>