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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              <html lang="en">
    <body>
      <!-- NavBAr -->
      <?php include 'includes/nav.php';?>
      <!-- NavBar End -->
        <div class="container">
             <div class="row">
                <div class="box ref-border-style">
                    <div class="col-lg-12 text-center">
                        <!-- Model HEre -->
                        <h2>
                        <img class="animated bounceIn" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/83115/fanta.png">
                        </h2>
                        <h1>
                        <span class="brand-name"></span>
                        </h1>
                        <hr class="tagline-divider">
                        <h2>
                        <small>Written in <strong>CSS3</strong></small>
                        </h2>
                        <span style="font-size: 12px">Hover over the Can to see the magic!</span><br><br>
                        <!-- CSS HOVER Fanta -->
                        <div class="fanta-css-hover">
                          <div class="base">
                            <div class="labeltexture">
                              <div class="inner">
                              </div>
                            </div>
                          </div>
                        </div>
                        <!-- /CSS HOVER Fanta END -->
                    </div>
                </div>
            </div>
            <!-- Fanta Row -->
            <div class="row">
                <div class="box fanta-border-style">
                    <div class="col-lg-12">
                        <hr>
                        <h2 class="intro-text text-center">History of <strong>Fanta</strong>
                        </h2>
                        <hr>
                        <img class="img-responsive img-border img-left" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/83115/intro-pic-fanta.png" alt="Sprite Intro Image">
                        <hr class="visible-xs">
                        <p>Popular favourite Fanta Orange is available in the UK alongside a great range of other flavours, including Fanta Icy Lemon, Fanta Fruit Twist, Fanta Mango and Passionfruit and Fanta Peach and Apricot, and Fanta Raspberry and Passionfruit. There are more than 90 flavours of Fanta worldwide.</p>
                        <p>Available in the following variants: Fanta Orange, Fanta Icy Lemon, Fanta Fruit Twist, Fanta Peach and Apricot, Fanta Mango and Passionfruit, Fanta Raspberry and Passionfruit.</p>
                    </div>
                </div>
            </div>
            <!-- /Fanta Row END-->
        </div>
        <!-- /.container END -->
    </body>
</html>
            
          
!

CSS

            
              /*Preload Fix*/
.preload * {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
}
/**/

.stickyButton
{ 
 position:fixed;
 z-index: 9999;
 right: -6px;
 float:right;
 top: 70px;
  -ms-transform: rotate(-90deg);  
    -webkit-transform: rotate(-90deg); 
      transform: rotate(-90deg);
}

body {
  background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/83115/bg3.jpeg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 400;
}

p {
  font-size: 1.25em;
  line-height: 1.6;
  color: #000;
}

hr {
  border-color: #999999;
  max-width: 400px;
}

.box {
  background: #fff;
  background: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  padding: 30px 15px;
}

.intro-text {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.25em;
  font-weight: 400;
}

.img-border {
  float: none;
  margin: 0 auto 0;
  border: #999999 solid 1px;
}

.img-left {
  float: none;
  margin: 0 auto 0;
}
.img-right {
  float: none;
  margin: 0 auto 0;
}
/*********************
FANTA HOVER CSS STYLING
*************************/
.fanta-css-hover
{
  width:300px;
  background: #fff;
  margin:0 auto;
}
.base {
  width: 194px;
  margin-left: 100px;
  transition: all 0.5s ease-in-out !important;
  -webkit-transition: all 0.5s ease-in-out !important;
  -moz-transition: all 0.5s ease-in-out !important;
  padding-top:25px;
}
.base:hover {
  margin-left: 0;
}
.base:focus {
  margin-left: 0;
}
.inner {
  width: 194px;
  height: 336px;
  background-image: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/83115/coke_can.png');
}
.labeltexture{
  width: 194px;  
  height: 336px;
  background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/83115/fanta_label.png') -325px 9px no-repeat;
  -webkit-transition: all 0.5s ease-in-out !important;
  -moz-transition: all 0.5s ease-in-out !important;
}
.base:hover .labeltexture {
  background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/83115/fanta_label.png') -505px 9px no-repeat;
}
.base:focus .labeltexture {
  background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/83115/fanta_label.png') -505px 9px no-repeat;
}



/*Responsive Stuff*/

  @media screen and (min-width: 768px) {

    .brand {
      display: inherit;
      font-weight: 700;
      font-size: 5em;
      line-height: normal;
      text-align: center;
      margin: 0;
      padding: 30px 0 10px;
      color: #ffffff;
      /*text-shadow: 1px 1px 2px rgba(158, 158, 158, 0.5);*/
    }

    .top-divider {
      margin-top: 0;
    }

    .img-left {
      float: left;
      margin-right: 25px;
    }
    .img-right
    {
      float:right;
      margin-left: 25px;
    }

    .course-info {
      display: inherit;
      text-align: center;
      margin: 0;
      padding: 0 0 40px;
      font-size: 1.25em;
      text-transform: uppercase;
      letter-spacing: 3px;
      font-weight: 400;
      color: #ffffff;
    }
    .navbar-nav {
      float: none;
      margin: 0 auto;
      display: table;
      table-layout: fixed;
      font-size: 1.25em;
    }

    img.img-footer
    {
      margin:1% auto;
      width: 3%;
    }
}

@media screen and (min-width: 1200px) {
    .box:after {
        content: '';
        display: table;
        clear: both;
    }
}
            
          
!

JS

            
              
            
          
!
999px

Console