Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                
<div class="container-1">
  <h1> Using Units Relative to size </h1>
    <div class="col-md-6">
        <p class="scaled-text"><span>Runs on Linux containers, macOS and Windows</span> </br></br>
    
   <span class ="text">HyperExecute platform comes with feature-packed hosted runners for every major OS including Windows, MacOS, and Linux containers. The runners come with pre-installed support for all major programming languages and frameworks including Java, Node.js, Python, PHP, GO, C#, Rust, and Ruby </span></p>
   </div>
  </div>

  <div class ="container-2">
    <h1>Not Using Units Relative to size </h1>
      <div class="col-md-6">
        <p class="not-scaled-text"><span>Runs on Linux containers, macOS and Windows </span> </br></br>
         <span class =" text">HyperExecute platform comes with feature-packed hosted runners for every major OS including Windows, MacOS, and Linux containers. The runners come with pre-installed support for all major programming languages and frameworks including Java, Node.js, Python, PHP, GO, C#, Rust, and Ruby. </span></p>
        
      </div>
    </div>

              
            
!

CSS

              
                .container-1, .container-2 {
  display: inline-block;
  width: 45vw; /* Use 45% of the viewport width */
  vertical-align: top;
  padding: 2vh; /* Use 2% of the viewport height for padding */
  box-sizing: border-box;
}

.container-1 {
  background-color:  #0ebac5;
  color: black;
  max-width: 800px;
  margin: 0 auto;
}

.container-2 {
  background-color:  #0ebac5; 
  color: black;
  padding: 20px;
  border: 1px solid #dcdcdc;
  width: 90vw;
  max-width: 800px;
  margin: 20px auto;
}




.col-md-6 {
  width: 100%;
}

.scaled-text {
 font-size: calc(1em + 0.5vw); /* Use em units to scale the font size */
}

.not-scaled-text {
  font-size: 1em;
}

span{
  color: black;
}

.text{
  color: dark grey;
}

              
            
!

JS

              
                
              
            
!
999px

Console