Moving Circle to Top of Border With CSS - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Shape

Description

Moving Circle to Top of Border With CSS

Demo Code

ResultView the demo in separate window

<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>

Related Tutorials