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

              
                
 
<body>
<!--   header -->
<header id="showcase" class="grid">
    <div class="bg-image"></div>
  <div class="content-wrap">
     <h1>Welcome to Web Solutions</h1>
  <p>Echo park fixie kinfolk whatever tilde. Letterpress farm-to-table kombucha leggings pop-up ennui lyft, cliche pabst forage pug jean shorts heirloom. Roof party hot chicken raclette, chartreuse twee craft beer jean shorts vice cray selvage raw denim skateboard. </p>
  <a href="#section-b" class="btn">Read More</a>
  </div>
</header>
<!--  main  -->
  <main id="main">
  <section id="section-a" class="grid">
    <div class="content-wrap">
      <h2 class="content-title">Web & App Development</h2>
      <div class="content-text">
        <p>Echo park fixie kinfolk whatever tilde. Letterpress farm-to-table kombucha leggings pop-up ennui lyft, cliche pabst forage pug jean shorts heirloom. Roof party hot chicken raclette, chartreuse twee craft beer jean shorts vice cray selvage raw denim skateboard.</p>
      </div>
    </div>
  </section>
<!--  section B    -->
    <section id="section-b" class="grid">
      <ul>
        <li>
          <div class="card">
            <img src="https://images.pexels.com/photos/574073/pexels-photo-574073.jpeg?w=940&h=650&auto=compress&cs=tinysrgb" alt="programming">
            <div class="card-content">
              <h3 class="card-title">Web Development</h3>
              <p> Roof party hot chicken raclet park fixie kinfolk whatever tilde. Letterpress farm-to-table kombucha leggings pop-up ennui lyft, cliche </p>
            </div>
          </div>
        </li>
        <li>
          <div class="card">
            <img src="https://images.pexels.com/photos/38544/imac-apple-mockup-app-38544.jpeg?w=940&h=650&auto=compress&cs=tinysrgb" alt="mobile applications">
            <div class="card-content">
              <h3 class="card-title">Mobile Applications</h3>
              <p> Craft beer jean shorts vice cray selvage raw denim skateboard. Letterpress farm-to-table kombucha leggings pop-up ennui lyft, cliche </p>
            </div>
          </div>
        </li>
        <li>
          <div class="card">
            <img src="https://images.pexels.com/photos/266176/pexels-photo-266176.jpeg?w=940&h=650&auto=compress&cs=tinysrgb" alt="marketing">
            <div class="card-content">
              <h3 class="card-title">Online Marketing</h3>
              <p> Pabst blue ribbon beard oil, pug heirloom Letterpress farm-to-table kombucha leggings lyft. Craft beer vice cray selvage raw denim skateboard.</p>
            </div>
          </div>
        </li>
      </ul>
    </section>
<!--  section C    -->
    <section id="section-c" class="grid">
      <div class="content-wrap">
        <h2 class="content-title">We handle all of your digital needs</h2>
        <p>Echo park fixie kinfolk whatever tilde. Letterpress farm-to-table kombucha leggings pop-up ennui lyft, cliche pabst forage pug jean shorts heirloom. Roof party hot chicken raclette, chartreuse twee craft beer jean shorts vice cray selvage raw denim skateboard.</p>
      </div>
    </section>
<!--  section D    -->
    <section id="section-d" class="grid">
      <div class="box">
        <h2 class="content-title">Contact Us</h2>
        <p>Echo park fixie kinfolk whatever tilde. Letterpress farm-to-table kombucha leggings pop-up ennui lyft, cliche pabst forage pug jean shorts heirloom. Roof party hot chicken raclette, chartreuse twee craft beer jean shorts vice cray selvage raw denim skateboard.</p>
        <p>Contact@websolutions.test</p>
      </div>
      <div class="box">
        <h2 class="content-title">About Web Soutions</h2>
        <p>Echo park fixie kinfolk whatever tilde. Letterpress farm-to-table kombucha leggings pop-up ennui lyft, cliche pabst forage pug jean shorts heirloom. Roof party hot chicken raclette, chartreuse twee craft beer jean shorts vice cray selvage raw denim skateboard.</p>
      </div>
    </section>
  </main>
<!--  footer  -->
  <footer id="main-footer" class="grid">
    <div>Web Solutions</div>
    <div>Project by <a href="http://www.allentowngroup.com/bobbys-world/" target="_blank"> Robert Allen</a></div>
  </footer>
</body>
              
            
!

CSS

              
                body{
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #333;
  color: #fff;
  font-size: 1.1em;
  line-height: 1.5;
  text-align: center;
}
img{
  display: block;
  width: 100%;
  height: auto;
}
h1, h2, h3{
  margin: 0;
  padding: 1em 0;
}
p{
  margin:0;
  padding: 1em 0;
}
.btn{
  display: inline-block;
  background: #333;
  color: #fff;
  text-decoration: none;
  padding: 1em 2em;
  border: 1px solid #666;
  margin: .5em 0;
}
.btn:hover{
  background: #eaeaea;
  color: #333;
}
#showcase{
  color: #fff;
  min-height: 450px;
  color: #fff;
}
#showcase .bg-image{
  position: absolute;
  background: #333    url('https://static.pexels.com/photos/248515/pexels-photo-248515.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 450px;
  z-index: -1;
  opacity: 0.5;
}
#showcase h1{
  padding-top: 100px;
  padding-bottom: 0;
}
#showcase .content-wrap,
#section-a .content-wrap{
  padding: 0 1.5em;
}
/* section A */
#section-a{
  background: #eaeaea;
  color: #333;
  padding-bottom: 2em;
}
/* section B */
#section-b{
  padding: 2em 1em 1em;
}
#section-b ul{
  list-style: none;
  margin: 0;
  padding: 0;
}
#section-b li{
  margin-bottom: 1em;
  background: #fff;
  color: #333;
}
.card-content{
  padding: 1.5em;
}
/* section C */
#section-c{
  background: #fff;
  color: #333;
  padding: 2em;
}
/* section D */
#section-d .box{
  padding: 2em;
  color: #fff;
}
#section-d .box:first-child{
  background: #2690d4;
}
/* footer */
#main-footer{
  padding: 2em;
  background: #000;
  color: #fff;
  text-align: center;
}
#main-footer a{
  text-decoration: none;
  color: #2690d4;
}
/* media queries */
@media(min-width: 700px){
  .grid{
    display: grid;
    grid-template-columns: 1fr repeat(2, minmax(auto, 25em)) 1fr;
  }
  #section-a .content-text{
    columns: 2;
    column-gap: 2em;
  }
  #section-a .content-text p{
    padding-top: 0;
  }
  .content-wrap, #section-b ul{
    grid-column: 2/4;
  }
  .box, #main-footer div{
    grid-column: span 2;
  }
  #section-b ul{
    display: flex;
    justify-content: space-around;
  }
  #section-b li{
    width: 31%;
  }
  .card img{
    max-height: 140px; 
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console