Pen Settings

HTML

CSS

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.

+ add another resource

JavaScript

Babel includes JSX processing.

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.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!--The paragraph container element-->
<p>
  <!--
The span container element
That holds the content to be
displayed in the paragraph
-->
  <span>
    <!--Content-->
  Thanks for going through <a href="https://blogs.hanumanteysoftwaresolutions.com/" target="_blank">Our Blog.</a> Please leave us your feedback at <a href="#" target="_blank">Cool Effects using CSS pseudo elements</a>
  </span>
</p>
              
            
!

CSS

              
                /*Styling Paragarph Element*/
p {
  /*Setting Paragraph width*/
  width: 300px;
  /*Setting margin to horizontally center align*/
  margin: 0 auto;
  /*Moving little down*/
  margin-top: 60px;
  /*Adding spacing of 20px*/
  padding: 20px;
  /*Setting relative position*/
  position: relative;
  /*Setting Gradient background*/
  background-image: linear-gradient(45deg, darkorange, red);
}
/*Setting every element position relative*/
p * {
  position: relative;
}
/*Setting ::before pseudo element*/
p::before {
  /*Empty content as we do not display anything*/
  content: "";
  /*setting background color to white*/
  background-color: #fff;
  /*setting display style to block*/
  display: block;
  /*setting position to absolute*/
  position: absolute;
  /*moving down 5px*/
  top: 5px;
  /*moving right 5px*/
  left: 5px;
  /*
  reducing width
  100% of the paragraph element - 10 px
  where 10 px comes from moving it 5px right
  this will make 5px of space at right side
  and 5px space at left side
  */
  width: calc(100% - 10px);
  /*
  reducing height
  100% of the paragraph element - 10 px
  where 10 px comes from moving it 5px down
  this will make 5px of space at top
  and 5px space at bottom
  */
  height: calc(100% - 10px);
}

              
            
!

JS

              
                
              
            
!
999px

Console