HTML CSS examples for CSS Widget:Shape
Moving Circle to Top of Border With CSS
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .circle {<!-- w w w . java2s .co m--> display: flex; align-items: center; text-align: center; justify-content: center; color: white; border-radius: 50%; width: 130px; height: 130px; margin: 0 auto; background: blue; position:relative; top: -65px; left: 0; } .container { margin-top: 100px; border: solid 1px; border-color: red; } </style> </head> <body> <div class="container"> <div class="circle"> Circle Text Here </div> </div> </body> </html>