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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <html>
  <head><title></title></head>

  <body>
    <header id="header">
      <img id="header-img" src="https://i.pinimg.com/originals/2f/2c/08/2f2c08966e531741d5a1e1fe465b6a4f.gif">
      <nav id="nav-bar">
        <a 
           class="nav-link" href="#features">Features</a><a 
                                                  class="nav-link" href="#middle">More&nbspAbout</a><a 
                                                                                          class="nav-link" href="#end">Prices</a>
      </header>
      <div class="itemphoto">
        <img class="s22ultra" src="https://www.rprna.com/wp-content/uploads/2020/02/Samsung-Galaxy-S20-Ultra-featured-1024x521.jpeg">
        </div>
        <div id="features">
          <p class="sim">Single SIM (Nano-SIM) or Dual SIM (2 Nano-SIMs + eSIM, dual stand-by). IP68 dust/water resistant (up to 1.5m for 30 mins). Armour aluminum frame with tougher drop and scratch resistance (advertised).Stylus, 2.8ms latency (Bluetooth integration, accelerometer, gyro).</p>
          <p class="sensor">Fingerprint (under display, ultrasonic), accelerometer, gyro, proximity, compass, barometer
 	Samsung DeX, Samsung Wireless DeX (desktop experience support)
Bixby natural language commands and dictation
Samsung Pay (Visa, MasterCard certified)
Ultra Wideband (UWB) support
</p>
    </body>
  </html>
              
            
!

CSS

              
                body{
  background-color:black;
}
#header{
  height: 20em;
  width: 100px;
  display: flex;
}
#header-img{
  height:10em;
  
}
#nav-bar{
display: flex;
  margin-left: 37em;
}
.nav-link{
  font-size: 1.3em;
  color: white;
  font-family: sans-serif;
  text-decoration: none;
  margin-top: 2.8em;
  margin-left: 5em;
  

}

.s22ultra{
  width: 80%
}
              
            
!

JS

              
                
              
            
!
999px

Console