HTML CSS examples for CSS Widget:UL Element
curve the div/li near to circle
<html> <head> <title>Lorem ipsum dolor sit amet, consectetur adipisc</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> ul {<!-- w w w. j a v a 2s. co m--> list-style:none; overflow:hidden; background-color:Chartreuse; } li { float:left; border:3px solid yellow; width:100px; height:31px; text-align:center; background-color:blue; } .right-circle { position:relative; border-bottom-left-radius:100%; border-bottom-right-radius:100%; width:61px; height:41px; background-color:pink; border-left:3px solid OrangeRed; top:-23px; left:91px; } .left-circle { position:relative; border-bottom-left-radius:100%; border-bottom-right-radius:100%; width:61px; height:41px; background-color:grey; border-right:3px solid BlueViolet; top:-23px; left:-51px; } .empty { border:none; width:51px; } </style> </head> <body> <ul> <li>Lorem ips <div class="right-circle"></div> </li> <li class="empty"></li> <li>Lorem ips <div class="left-circle"></div> </li> </ul> </body> </html>