HTML CSS examples for CSS Widget:Image Text
Inline round images with right text in two lines
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .upcoming-people__nav {<!--from w ww.j a v a 2s . com--> list-style-type:none; } .upcoming-people__navItem { display:inline; color:Chartreuse; padding-right:100px; } .upcoming-people__img { width:71px; height:auto; max-width:100%; border:3px solid yellow; border-radius:51%; float:left; margin-right:11px; } .text { overflow:hidden; } .text p { margin:0; } .upcoming-people__name { font-size:19px; font-weight:301; letter-spacing:0.16em; } .upcoming-people__job { color:blue; } </style> </head> <body> <ul class="upcoming-people__nav"> <li class="upcoming-people__navItem"> <img class="upcoming-people__img" src="https://www.java2s.com/style/demo/InternetExplorer.png"> <div class="text"> <p class="upcoming-people__name">Lorem ipsu</p> <p class="upcoming-people__job">Lorem ipsum dolo</p> </div> </li> </ul> </body> </html>