HTML CSS examples for CSS Layout:Layout
CSS comments layout
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .comment {<!-- w w w . ja v a2 s . co m--> width:100%; margin-bottom:21px; border-bottom:2px solid Chartreuse; min-height:121px; } .comment .user-photo { width:100px; height:100px; border:2px solid yellow; float:left; } .comment .user-info { margin-left:121px; } .comment .title { display:table; width:100%; } .comment .body { } .pull-left { float:left; } .pull-right { float:right; } </style> </head> <body> <div class="comment"> <div class="user-photo"></div> <div class="user-info"> <div class="title"> <h3 class="pull-left">Lorem ips</h3> <h3 class="pull-right">Lorem ipsu</h3> </div> <div class="body"> 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 vitae tempor iaculis. Aliquam erat volutpat. Mauris tincidunt </div> </div> </div> </body> </html>