cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

            
              
.container
  .outer-circle
    .inner-circle
      .star
        div
        div
        div
            
          
!
            
              body
  background: #1d202e
    
  .container
    position: relative
    height: 260px
    width: 260px
    margin: auto
    margin-top: 100px
    border-radius: 50%
    box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.5)
    //border: 1px solid red
    
    .outer-circle
      position: absolute
      height: 260px
      width: 260px
      background: #f3f3f3
      box-sizing: border-box
      border-radius: 50%
      border: 20px solid #DB281D

      .inner-circle
        position: absolute
        top: 20px
        left: 20px
        height: 180px
        width: 180px
        background: #1d6fbf
        box-sizing: border-box
        border-radius: 50%
        border: 20px solid #DB281D


        .star
          position: absolute
          height: 100%
          width: 100%
          top: 0px
          left: 0px

          div
            position: absolute
            box-sizing: border-box


            &:nth-child(1), &:nth-child(2)
              top: 1px
              height: 135px
              border-left: 31px solid #f3f3f3
              border-top: 95px solid transparent
              border-bottom: 40px solid transparent


            &:nth-child(1)
              left: 49px
              transform: rotate(17.6deg)

            &:nth-child(2)
              //display: none
              right: 49px
              transform: rotate(-17.6deg) rotateY(180deg)

            &:nth-child(3)
              //display: none
              top: 50px
              left: 5px
              width: 130px
              border-top: 40px solid #f3f3f3
              border-right: 60px solid transparent
              border-left: 60px solid transparent

            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console