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

              
                  <div class="nav">
  <div class="search">
    search
      <div class="magnifier">
      </div>
  </div>
  <ul>
    <li>Solutions<div class="bborder"></div></li>
    <li>About<div class="bborder"></div></li>
    <li>Support<div class="bborder"></div></li>
    <li>Blog<div class="bborder"></div></li>
    <li>Contact<div class="bborder"></div></li>
  </ul>
</div>

<div class="body">

  <div class="leftContent">
    <div class='leftCCon'>
    <h1>solutions<h1>
 
    <div class='bborder'></div>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<p>
  </div>
  </div>

  <div class="rightContent">
    
    <div class='solutionsTab ts'>
      <h2>Telephone Systems</h2>
        <div class='bborder'></div>
        <p>We deliver bespoke solutions for your business from a portfolio of award winning products.</p>  
    </div>
        
    <div class='solutionsTab cc'>
      <h2>Calls & Connections</h2>
        <div class='bborder'></div>
        <p>Our customers save over £3m a year with us on calls, lines and broadband – Why not give us a call today?</p>  
    </div>
        
    <div class='solutionsTab ss'>
      <h2>IT Solutions & Support</h2>
        <div class='bborder'></div>
        <p>Proactive IT Support and IT Services including Cloud Services, WiFi, Hardware and Software.</p>  
    </div>
        
    <div class='solutionsTab cps'>
      <h2>Copy, Print, Scan</h2>
        <div class='bborder'></div>
        <p>Simple photocopying to complex document archiving solutions, as well as printing and scanning.</p>  
    </div>
        
    <div class='solutionsTab be'>
      <h2>Business Essentials</h2>
        <div class='bborder'></div>
        <p>Additional products to enhance your business communications solutions even further.</p>  
    </div>
        
    <div class='solutionsTab ob'>
      <h2>Offers & Bundles</h2>
        <div class='bborder'></div>
        <p>Choose any one of our great bundle offers to find your perfect business technology solution.</p>  
    </div>
  
</div>
      
</div>
              
            
!

CSS

              
                $accent1: #192441;
$accent2: #ff4c11;
$accent3: #f7f7f7;

a {
  link-appearance: none;
}

body {
  padding: 0;
  margin: 0;
  font-family: lato;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nav {
  height: 130px;
  clear: both;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #192441; /* Old browsers */
background: -moz-linear-gradient(45deg, #192441 0%, #252d60 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left bottom, right top, color-stop(0%,#192441), color-stop(100%,#252d60)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(45deg, #192441 0%,#252d60 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(45deg, #192441 0%,#252d60 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(45deg, #192441 0%,#252d60 100%); /* IE10+ */
background: linear-gradient(45deg, #192441 0%,#252d60 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#192441', endColorstr='#252d60',GradientType=1 ); /* IE6-8 fallback on horizontal gradient */
}

.search { 
  position: absolute;
  right: 0;
  margin-top: 45px;
  height: 20px;
  background-color: #fff;
  width: 170px;
  padding: 10px 15px;
  text-align: left;
  float: right;
  color: #6d6d6d;
  cursor: pointer;
  transition: 0.4s ease;
  z-index: 1;
  
    .magnifier {
      display: inline-block;
      width: 40px;
      background-color: $accent2;
      height: 40px;
      position: absolute;
      right: 0;
      margin-top: -10px;
    }
  
  &:hover {
    width: 840px;
  }
}

ul {
  position: absolute;
  right: 0;
  text-align: right;
  list-style: none;
  margin-right: 220px;
  margin-top: 45px;
  
  li {
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    display: inline-block;
    padding: 10px 40px 10px 0;
    
    .bborder{
      border-bottom: 3px solid $accent2;
      margin-top: 10px;
      width: 0;
      transition: 0.4s ease;
    }  
    
    &:hover {
      
      .bborder {
        border-bottom: 3px solid $accent2;
        margin-top: 10px;
        width: 40px;
      }
      
    }
  }
}

.bborder {  
  border-bottom: 3px solid $accent2;
  margin-top: 10px;
  width: 40px;
}
      

// Split Screen Content

.body {
  padding-top: 110px;
  clear: both;
}

.leftContent {
  height: 100vh;
  width: 50%;
  position: fixed;
  float:left;
}

.leftCCon {
  padding: 100px 120px;
  
  h1 {
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 1.7em;
    color: rgba($accent1, 0.7);
  }
  
  p {
    font-size: 0.7em;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    color: rgba($accent1, 0.5);
  }
}

.rightContent {
  min-height: 100vh;
  float: right;
  background-color: $accent3;
  width: 50%;
  padding: 120px 0;
  
  .solutionsTab {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    padding: 40px 60px;
    background-color: rgba($accent1, 0.1);
    margin: 0 120px 80px 120px;
    border-radius: 3px;
    -webkit-box-shadow: 0 0px 0px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.24);
    transition: 0.4s ease;
    
    &:hover {
      color: #fff;
      background-color: $accent1;
      -webkit-box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    }
    
    &:active {
      -webkit-transition: 0.1s ease;
      -webkit-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.4);
      background-color: lighten($accent1, 20%);
    }
    
    h2 {
      font-weight: 100;
    }
    
    p {
      font-size: 1.1em;
      font-weight: 100;
    }
  }
}

.solutionsTab:last-child {
  margin: 0 120px;   
}

.ts {
  .bborder {
    border-bottom-color: #0fa7ea;
  }
}

.cc {
  .bborder {
    border-bottom-color: #107ba1;
  }
}

.ss {
  .bborder {
    border-bottom-color: #a81f96;
  }
}

.cps {
  .bborder {
    border-bottom-color: #ea0689;
  }
}

.be {
  .bborder {
    border-bottom-color: #cec626;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console