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

              
                <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">


<div class="container">
  <div class="blog-title">
    <h1>Freemote Blog</h1>
    <p>Written by Aaron Jack who lives wherever he wants, and works whenever he wants.</p>
  </div>
  <div class="top-post">
    <img src="https://practiceblog.freemote.com/img/big-post.png" />
    <div class="post-details top-post-details">
      <h3>How to make your web design unique</h3>
      <h6>What makes visual content unique & how to create it without breaking the rules</h6>
      <div class="bio">
        <img src="https://practiceblog.freemote.com/img/me.png" />
        <div>
          <p>Aaron Jack</p>
          <p>May 10 - 12 Min Read</p>
        </div>
      </div>
    </div>
  </div>
  <div class="other-posts">
    <div class="post">
      <img src="https://practiceblog.freemote.com/img/post-2.png" />
      <div class="post-details">
      <h3>Landing for Business</h3>
      <h6>When does your business need a landing page?</h6>
      <div class="bio">
        <img src="https://practiceblog.freemote.com/img/me.png" />
        <div>
          <p>Aaron Jack</p>
          <p>May 10 - 12 Min Read</p>
        </div>
      </div>
    </div>
    </div>
    <div class="post">
      <img src="https://practiceblog.freemote.com/img/post-3.png" />
      <div class="post-details">
      <h3>Dashboard Design</h3>
      <h6>Anatomy of an effective dashboard</h6>
      <div class="bio">
        <img src="https://practiceblog.freemote.com/img/me.png" />
        <div>
          <p>Aaron Jack</p>
          <p>May 10 - 12 Min Read</p>
        </div>
      </div>
    </div>
    </div>
    <div class="post">
      <img src="https://practiceblog.freemote.com/img/post-4.png" />
      <div class="post-details">
      <h3>UI Secrets They Don't Want You To Know</h3>
      <h6>Secrets uncovered after years in the industry</h6>
      <div class="bio">
        <img src="https://practiceblog.freemote.com/img/me.png" />
        <div>
          <p>Aaron Jack</p>
          <p>May 10 - 12 Min Read</p>
        </div>
      </div>
    </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

p {
  font-family: 'Merriweather', serif;
}

.container {
  margin: 120px auto;
  padding-bottom: 50px;
  width: 900px;
}

.blog-title {
  border-bottom: 1px solid lightgrey;
  padding-bottom: 40px;
}

.post-details > h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 10px 0;
}

.post-details > h6 {
  font-size: 0.9rem;
  font-weight: 600;
}


.top-post {
  display: flex;
  padding-top: 25px;
}

.top-post > img {
  width: 65%;
}

.top-post-details {
  margin-left: 45px;
  margin-top: 30px;  
  width: 35%;
}

.top-post-details > h3 {
  font-size: 1.6rem;
}

.bio {
  display: flex;
  margin-top: 20px;
}

.bio > img {
  border-radius: 100%;  
  height: 40px;
  margin-right: 10px;
  width: 40px;
}

.other-posts {
  display: flex;
  justify-content: space-between;
  padding-top: 35px;
}

.post {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 30%; 
}

.post > img {
  width: 100%;
}

.post h3 {
  margin-top: 10px;
}
              
            
!

JS

              
                
              
            
!
999px

Console