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="outside">
  <div class="containerIpadAir">
    <div class="innerIpadAir">
      <div class="wrapper">
      
         
        <div class="homeHero">
          <div class="bg2">
          
          <div class="headerNav">
            <div class="headerTitle">
              <h1><a href="/">BruxZir</a></h1>
              
            </div>
          
            <div class="headerMenu">
              <!--
              <a href="#" class="dd">&equiv;</a>
              -->
              <ul>
                <li><a href="#">Features</a></li>
                <li><a href="#">Science</a></li>
                <li><a href="#">Videos</a></li>
                <li><a href="#">Cases</a></li>
                <li><a href="#">Testimonials</a></li>
                <li><a href="#">Find an authorized Lab</a></li>
              </ul>
            </div>
            
          </div> <!--/ .headerNav -->
          
          <div class="international">
            <span class="intlFlag"></span>
            <span>North America</span>
            <span class="intlButton">
              <a href="#"> <!-- link pending -->
                <i class="fa fa-globe"></i>
              </a>
            </span>
          </div> <!--/ .international -->
          
          </div> <!--/ .bg2 -->
        </div> <!--/ .homeHero -->
       
        
        <div class="intro">
          <p>BruxZir<sup>&reg;</sup> Solid Zirconia is a monolithic zirconia crown, bridge, screw-retained implant crown, inlay or onlay with no porcelain overlay. That provides a durable, more esthetic alternative for demanding situations.</p>
        </div> <!--/ .intro -->
        
        <ul class="mainOptions">
          <li>
            <div class="optionIcon">
              <i class="fa fa-book"></i>  
            </div>
            <div class="optionLinks">
              <h2>General Information</h2>
              <ul>
                <li><a href="#">Features of Awesome Product</a></li>
                <li><a href="#">Science of Awesome Product</a></li>
                <li><a href="#">Videos</a></li>
              </ul>
            </div>  
          </li>
          
          <li>
            <div class="optionIcon">
              <i class="fa fa-user-md"></i> 
            </div>
            <div class="optionLinks">
              <h2>Dentists</h2>
              <ul>
                <li><a href="#">Find a Laboratory</a></li>
                <li><a href="#">Marketing Resources</a></li>
              </ul>
            </div>  
          </li>
          
          <li>
            <div class="optionIcon">
              <i class="fa fa-hospital-o"></i> 
            </div>
            <div class="optionLinks">
              <h2>Laboratories</h2>
              <ul>
                <li><a href="#">Become an Authorized Laboratory</a></li>
                <li><a href="#">Marketing Resources</a></li>
                <li><a href="#">Outsource to Milling Center</a></li>
              </ul>
            </div>  
          </li>
          
        </ul>
        
        
        
      </div> <!--/ .wrapper -->
    </div> <!--/ .inneriPhone -->
  </div> <!--/ .containerIphone -->
</div> <!--/ .outside -->
              
            
!

CSS

              
                /* resets */
body { margin:0; padding:0; }
/* outer container */
.outside{ 
  background: #e5e5e5;
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -10;
}
.containerIpadAir{
  background-image:url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/101702/ipad-air-vertical.png');
  background-size: 883px 1251px;
  background-color: transparent;
  width: 883px;
  height: 1251px;
  margin: auto;
  position:absolute;
  top:12px; left:0;bottom:0; right:0;
}
.innerIpadAir{
  background-color: #fff;
  width: 768px;
  height: 1024px;
  height: 1004px;
  margin: auto;
  position:absolute;
  top:40px; /* needs improvement */ 
  left:0;bottom:0; right:0;
} 

/* ====== Project ====== */
@import url('https://fonts.googleapis.com/css?family=Open+Sans');
.wrapper { font-family: 'Open Sans', sans-serif; color: #444; }
sup { font-size: 0.8em; }



.homeHero {
  background-color: #333;
  width: 100%;
  height: 300px;
  position: relative;
}

/* for background */
.homeHero {
  background-image: url('https://shared-assets.s3.amazonaws.com/codepen/bruxzir/bruxzir-milling-machines.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
}

/* test */
.bg2 {
  background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/101702/dental-lab-services.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  width: 100%;
  height: 300px;
  position: relative;
}

.headerNav {
  background-color:rgba(30,30,30, 0.3);
  height: 60px;
  position: relative;
}
.headerTitle {
  position: absolute;
  left: 12px;
}
.headerTitle h1 {
  font-size: 30px;
  line-height: 60px;
  margin: 0;
}
.headerTitle h1 a {
  color: #fff; 
  text-decoration: none; 
}

.headerMenu {
  line-height: 60px;
  position: absolute;
  top: 0;
  right: 12px;
}
.headerMenu a { color:#fff; text-decoration:none; }
.headerMenu ul { 
  font-size: 16px;
  list-style-type: none; 
  margin:0;
}
.headerMenu ul li { 
  display:inline;
}
.headerMenu ul li a{
  font-weight: 300;
  letter-spacing: 0.6px;
  padding: 4px 6px;
  background-color: rgb(26,26,32);
  border-radius:8px;
} 

.international {
  background-color: rgba(96, 80, 80, 0.3);
  color: #fff;
  font-size: 18px;
  line-height: 42px;
  margin: auto;
  position: absolute;
  bottom: 0; left: 0; right: 0; 
  width: 100%;
}
/* only on tablet */
.international { max-width: 240px; }

.international > span {
  display: inline-block;
  line-height: 42px;
  margin-left: 6px;
  vertical-align: middle;
}

.intlFlag {
  background-color: #fff;
  background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/101702/flag-sprite.png');
  height: 28px;
  width: 44px;
}

.usFlag { background-position: 0px 0px; }

.intlButton { 
  float: right;
  font-size: 24px;
  margin-right: 6px;
}
.intlButton a { color: #444; }
.intlButton i {
  background-color: rgba(225, 225, 225, 0.7); 
  border-radius: 3px;
  padding: 4px; 
}

.intro { 
  border-top: 1px #777 solid;
  padding: 12px; 
  text-align: justify; 
}
.intro p { font-size: 23px; margin: 0; }

.mainOptions { list-style-type: none; padding-left: 0; }
.mainOptions { padding: 0 12px;  } /* only in testing */
.mainOptions > li { margin-bottom: 12px; }

.optionIcon {
  background-color: #fee804;
  border-radius: 2px;
  height: 144px;
  width: 120px;
}
.optionIcon { clear: left; margin-bottom: 18px; }
.optionIcon, .optionLinks { float: left; }
.optionLinks { padding-left: 12px; }
.optionLinks h2 { letter-spacing: 1px; margin: 6px 0 12px 0; }
.optionLinks ul {
  font-size: 19px;
  letter-spacing: 1.2px;
  line-height: 24px;
  list-style-type: none;
  padding-left: 18px
}
.optionLinks ul li { 
  border-bottom: #888 1px dashed; 
  margin-bottom: 8px;
}

.optionLinks a { 
  color: #444;
  font-weight: bold;
  text-decoration: none; 
}

.optionIcon { text-align: center; }
.optionIcon i {
  font-size: 56px;
  margin-top: 13px;
}
              
            
!

JS

              
                
              
            
!
999px

Console