HTML CSS examples for CSS Widget:Shape
Create message bubble for a circle
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #msgbodyli {<!-- w w w . j av a 2s . c o m--> margin-top:21px height:auto; overflow:hidden; background-color:Chartreuse; } .clr { clear:both } .leftalign .imgbox { float:left; } .leftalign .callout { position:relative; left:71px; padding:11px; background-color:yellow; -moz-border-radius:6px; -webkit-border-radius:6px; border-radius:6px; } .leftalign .callout .notch { position:absolute; top:11%; left:-11px; border-left:0; border-bottom:11px solid blue; border-right:11px solid pink; border-top:11px solid OrangeRed; width:0; height:0; font-size:0; line-height:0; _border-right-color:pink; _border-left-color:pink; _filter:chroma(color=pink); } .imgbox { border:2px solid grey; padding:4px; background:BlueViolet; margin-right:11px; } .circle { border-radius:51%; -moz-border-radius:51%; -webkit-border-radius:51%; } .subimgbox, .imgbox { display:block; width:47px; height:47px; } .subimgbox { overflow:hidden; background:Chartreuse; } </style> </head> <body> <div id="msgbodyli" class="ln"> <div class="leftalign"> <div class="imgbox circle"> <div class="subimgbox circle"></div> </div> <div class="callout"> 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, t <b class="notch"></b> </div> <div class="clr"></div> </div> <div class="leftalign"> <div class="imgbox circle"> <div class="subimgbox circle"></div> </div> <div class="callout"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorpe <b class="notch"></b> </div> <div class="clr"></div> </div> </div> </body> </html>