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

              
                <div class="content-wrapper">
  <p style="margin-bottom: 4em;">This is an experiment after I posted <a href="https://www.geffreyvanderbos.com/keeping-up-with-design-trends" target="_blank">this on my actual blog.</a></p>
  <div class="e-content">
    <div class="header">
      <date>November 21st, 2020</date>
    </div>
    <div class="content">
      <h2>
        Keeping Up With Design Trends
      </h2>
      <p>Apple is paving the way with new skeuomorphic design. Those tendencies first appeared on the toolkit in Apple’s Notes app.
      </p>
      <p>MacOS their recent version Big Sur caused a big nostalgia trip with reintroducing three-dimensional product icons. And, many people find them ugly.
      </p>
      <p>
        I have always been a fan of a tactile feel of what we do on screens. Making visual design look ‘closer to the real thing’ helps with that.
      </p>
      <p>
        That’s why I am considering getting into 3D design. Are we going to see a change to ‘neumorphic’ user interfaces?
      </p>
    </div>
  </div>

  <div class="e-content">
    <div class="header">
      <date>November 21st, 2020</date>
    </div>
    <div class="content">
      <h2>
        Social Media Sabotages My Product Design Aspirations: An Email Course
      </h2>
      <p>I grab my phone and start swiping, looking for something to engage my wandering mind. Only to realise I've eaten up another half an hour of my day.
      </p>
    </div>
    <div class="read-more">Read More</div>
  </div>

</div>
              
            
!

CSS

              
                body {
  background-color: #f9fafe;
  font-family: "Geomanist", sans-serif;
  line-height: 1.6;
  color: #060914;
  -webkit-font-smoothing: antialiased !important;
-moz-osx-font-smoothing: grayscale;
}

.content-wrapper {
  padding-top: 4em;
  margin: 0 auto;
  max-width: 640px;
}

.e-content {
  margin-bottom: 4em;
  background-image: linear-gradient(135deg, #fcfeff 0%, #f5f6fc 100%);
  box-shadow: 0 12px 24px -10px rgba(89, 113, 218, 0.38),
    0 2px 3px 0 rgba(63, 79, 153, 0.24), 0 9px 2px -8px rgba(52, 66, 128, 0.24),
    inset -1px -1px 1px 0 rgba(255, 255, 255, 0.75);
  border-radius: 1em;
  max-width: 100%;
}

.e-content .header {
  background: #ffffff;
  background-image: linear-gradient(206deg, RGBA(67, 95, 218, .085)
 0%, RGBA(216, 65, 92, .025) 260%);
  box-shadow: 0 12px 24px -10px rgba(89, 113, 218, 0.38),
    0 2px 3px 0 rgba(63, 79, 153, 0.24), 0 9px 2px -8px rgba(52, 66, 128, 0.24),
    inset -1px -1px 1px 0 rgba(255, 255, 255, 1);
  border-radius: 16px 16px 0 0;
}

.e-content .content {
  padding: 1em 2em 3em 2em;
}

date {
  display: block;
  padding: 1em 2em;
  font-size: 16px;
  font-weight: bold;
  color: #d8415c;
  text-shadow: 0 0 10px rgba(216, 65, 92, 0.4);
}

.read-more {
  text-align: center;
font-size: 18px;
color: #435FDA;
  font-weight: bold;
  line-height: 4em;
  min-height: 4em;
  border-radius: 0 0 1em 1em;
  background-image: linear-gradient(180deg, #F0F3FF 0%, #D4DBFA 100%);
box-shadow: 0 0 6px 0 rgba(2,37,191,0.24);
}
              
            
!

JS

              
                
              
            
!
999px

Console