cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <!-- based on https://codepen.io/lrenhrda/# -->
<div style="width: 40em">
  <p style="text-align: center">Braces</p>
  <div class="brace-top"></div>
  <p style="text-align: center">are coming</p>
</div>

<div style="width: 40em">
  <p style="text-align: center">Braces</p>
  <div class="brace-bottom"></div>
  <p style="text-align: center">are coming</p>
</div>

<div style="height: 10em; width: 40em; display: flex; justify-content: center; margin: 2em 0;">
  <p style="text-align: center; align-self: center;">Braces</p>
  <div class="brace-left"></div>
  <p style="text-align: center; align-self: center;">are coming</p>
</div>

<div style="height: 10em; width: 40em; display: flex; justify-content: center; margin: 2em 0;">
  <p style="text-align: center; align-self: center;">Braces</p>
  <div class="brace-right"></div>
  <p style="text-align: center; align-self: center;">are coming</p>
</div>
            
          
!
            
              $dim1: 2em;

.brace-top {
  padding-bottom: $dim1;
  position: relative;
  margin: 0 $dim1 $dim1;
  background-image: radial-gradient(circle at 0 0, rgba(255,255,255,0) 16.5px, #000 15.5px, #000 19.5px, rgba(255,255,255,0) 18.5px), radial-gradient(circle at 36px 0, rgba(255,255,255,0) 16.5px, #000 15.5px, #000 19.5px, rgba(255,255,255,0) 18.5px);
  background-size: 35px 20px;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.brace-top:before {
  width: 50%;
  border-top: 3px solid #000;
  border-left: 1px solid transparent;
  border-top-left-radius: 20% 30px;
  height: 100%;
  content: "";
  position: absolute;
  top: 100%;
  left: -15px;
  box-sizing: border-box;
  margin-top: -3.85px;
}
.brace-top:after {
  width: 50%;
  border-top: 3px solid #000;
  border-right: 1px solid transparent; 
  border-top-right-radius: 20% 30px;
  height: 100%;
  content: "";
  position: absolute;
  top: 100%;
  right: -15px;
  box-sizing: border-box;
  margin-top: -3.85px;
}


.brace-bottom {
  padding-top: $dim1;
  position: relative;
  margin: 0 $dim1 $dim1;
  background-image:radial-gradient(circle at 0 36px, rgba(255,255,255,0) 16.5px, #000 15.5px, #000 19.5px, rgba(255,255,255,0) 18.5px),radial-gradient(circle at 36px 36px, rgba(255,255,255,0) 16.5px, #000 15.5px, #000 19.5px, rgba(255,255,255,0) 18.5px);
  background-size: 35px 40px;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.brace-bottom:before {
  width: 50%;
  border-bottom: 3px solid #000;
  border-left: 1px solid transparent;
  border-bottom-left-radius: 20% 30px;
  height: 100%;
  content: "";
  position: absolute;
  top: 100%;
  left: -15px;
  box-sizing: border-box;
  margin-top: -52.25px;
}
.brace-bottom:after {
  width: 50%;
  border-bottom: 3px solid #000;
  border-right: 1px solid transparent; 
  border-bottom-right-radius: 20% 30px;
  height: 100%;
  content: "";
  position: absolute;
  top: 100%;
  right: -15px;
  box-sizing: border-box;
  margin-top: -52.25px;
}


.brace-left {
  height: 100%;
  padding-right: $dim1;
  position: relative;
  margin: 0 $dim1 $dim1;
  background-image: 
    radial-gradient(circle at 0 0px,  rgba(255,255,255,0) 16.5px, #000 15.5px, #000 19.5px, rgba(255,255,255,0) 18.5px), 
    radial-gradient(circle at 0 35px, rgba(255,255,255,0) 16.5px, #000 15.5px, #000 19.5px, rgba(255,255,255,0) 18.5px);
  background-size:  36px 36px;
  background-position: center;
  background-repeat: no-repeat;
}
.brace-left:before {
  border-left: 3px solid #000;
  border-top: 1px solid transparent;
  border-top-left-radius:  30px 20%;
  height: 50%;
  content: "";
  position: absolute;
  top: -5px;
  left: 14px;
  box-sizing: border-box;
  margin-top: -10px;
  width: $dim1;}
.brace-left:after {
  border-left: 3px solid #000;
  border-bottom: 1px solid transparent; 
  border-bottom-left-radius: 30px 20%;
  height: 50%;
  content: "";
  position: absolute;
  bottom: -5px;
  right: -15px;
  box-sizing: border-box;
  margin-bottom: -10px;
  width: $dim1;
}


.brace-right {
  height: 100%;
  padding-right: $dim1;
  position: relative;
  margin: 0 $dim1 $dim1;
  background-image: 
    radial-gradient(circle at 36px 0px,  rgba(255,255,255,0) 16.5px, #000 15.5px, #000 19.5px, rgba(255,255,255,0) 18.5px), 
    radial-gradient(circle at 36px 36px, rgba(255,255,255,0) 16.5px, #000 15.5px, #000 19.5px, rgba(255,255,255,0) 18.5px);
  background-size:  36px 36px;
  background-position: center;
  background-repeat: no-repeat;
}
.brace-right:before {
  border-right: 3px solid #000;
  border-top: 1px solid transparent;
  border-top-right-radius:  30px 20%;
  height: 50%;
  content: "";
  position: absolute;
  top: -5px;
  left: -14px;
  box-sizing: border-box;
  margin-top: -10px;
  width: $dim1;}
.brace-right:after {
  border-right: 3px solid #000;
  border-bottom: 1px solid transparent; 
  border-bottom-right-radius: 30px 20%;
  height: 50%;
  content: "";
  position: absolute;
  bottom: -5px;
  right: 14px;
  box-sizing: border-box;
  margin-bottom: -10px;
  width: $dim1;
}

            
          
!
999px
Loading ..................

Console