HTML CSS examples for CSS Widget:UL Alignment
Html css Vertical list aligning top
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .content {<!--from w w w.j a v a2 s . c om--> width:91%; margin:auto; } #carousel-navigation { background-color:Chartreuse; } #carousel-navigation li { list-style:none; display:inline-block; width:24%; background-color:yellow; vertical-align:top; } </style> </head> <body> <div class="content"> <div id="carousel-navigation"> <ul> <li> <img src="https://www.java2s.com/style/demo/Firefox.png"> <h3>Lorem ipsu</h3> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharetra nisl. Maecenas aliquam luctus mauris, vitae venenatis diam imperdiet vel. Donec tortor diam, pretium vitae nibh vitae, consectetur lacinia sem. Proin luctus facilisis volutpat. Ut semper sit amet purus quis ornare. Quisque lobortis neque v</p> </li> <li> <img src="https://www.java2s.com/style/demo/Google-Chrome.png"> </li> <li> <img src="https://www.java2s.com/style/demo/Safari.png"> </li> <li> <img src="https://www.java2s.com/style/demo/Google-Chrome.png"> </li> </ul> </div> </div> </body> </html>