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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>Dainty Tree Frog</title>
</head>

<body>
  <header>
    <picture>
      <!-- Show a portrait cropped version of the image in grayscale for viewports up to 320px -->
      <source media="(max-width: 320px)" 
              srcset="https://zenhub.zengenti.com/image-examples/tree-frog.jpg?w=240&h=320&fit=crop&e=grayscale 240w">

      <!-- Show a portrait cropped version of the image for viewports up to 480px -->
      <source media="(max-width: 480px)" 
              srcset="https://zenhub.zengenti.com/image-examples/tree-frog.jpg?w=240&h=320&fit=crop 240w">

      <!-- Show a traditional 4:3 crop of the image for viewports up to 640px -->
      <source media="(max-width: 640px)" 
              srcset="https://zenhub.zengenti.com/image-examples/tree-frog.jpg?w=640&h=320&fit=crop 640w">

      <!-- Show a letterbox crop of the image for viewports up to 1920px -->
      <source media="(max-width: 1920px)" 
              srcset="https://zenhub.zengenti.com/image-examples/tree-frog.jpg?w=1024&h=450&fit=crop-bottom 1024w">

      <!-- Show a tighter letterbox crop of the image for viewports larger than 1921px -->
      <source media="(min-width: 1921px)" 
              srcset="https://zenhub.zengenti.com/image-examples/tree-frog.jpg?w=1920&h=600&fit=crop 1920w">

      <img src="https://zenhub.zengenti.com/image-examples/tree-frog.jpg?w=240&h=320&fit=crop" 
           alt="Dainty tree frog">
    </picture>
  </header>
  <main>
    <section>
      <h1>Dainty tree frog</h1>

      <p>The dainty green tree frog or graceful tree frog <i>(Litoria gracilenta)</i> is a tree frog native to eastern Queensland, and north-eastern New South Wales, Australia. It ranges from northern Cape York in Queensland to Gosford in New South Wales,
        with a small and most likely introduced population in Hornsby Heights in Sydney. It is the faunal emblem of the City of Brisbane.</p>

      <img srcset="https://zenhub.zengenti.com/image-examples/tree-frog.jpg?w=600,
             https://zenhub.zengenti.com/image-examples/tree-frog.jpg?w=800,
             https://zenhub.zengenti.com/image-examples/tree-frog.jpg?w=1200"
           
           src="https://zenhub.zengenti.com/image-examples/tree-frog.jpg?w=500" 
           alt="Dainty tree frog">

      <p>The dainty green tree frog is commonly found in vegetation emerging from the water in streams and swamps, often in temporary water. It is found in a range of habitats, including rainforest, woodland and forest. It is commonly found near human developments,
        in gardens or farms and often enters houses looking for insects. Due to its common occurrence on fruit and vegetable farms, particularly bananas, it is commonly transported around Australia with fruits or vegetables, frequently becoming a lost
        frog. This is common among many frog species, and is of concern due to the much faster rate at which it can spread disease.</p>

      <p>This species is usually seen after heavy rain during spring and summer. It breeds in flooded grassland and small ponds. The males will call during summer after rain, and the call is a long "waa" or "wee". Others describe the call as a long, growl-like
        'aarrrc' repeated frequently. Males form noisy choruses during summer breeding season." The eggs are laid in a clear jelly lump in water, and are attached to vegetation. Tadpole development takes about 14 weeks. The tadpoles are a dark brown colour,
        with a clear, yellow tinge on the body wall.</p>

      <p>See the <a href="https://developer.zengenti.com/contensis/api/images/">Image API reference</a> on image transformation in Contensis.</p>
    </section>
  </main>
</body>

</html>
              
            
!

CSS

              
                html {
  font-family: sans-serif;
  background-color: #080825;
}
body {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  background-color: white;
}

section {
  padding: 2em;
}
p {
  line-height: 1.5;
}
img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}
              
            
!

JS

              
                
              
            
!
999px

Console