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

              
                <body data-spy="scroll" data-target="#my-nav-bar" offset="50">
    <nav class="navbar navbar-inverse navbar-fixed-top">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#my-nav-bar" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">John O'Keefe</a>
            </div>
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse navbar-right" id="my-nav-bar">
                <ul class="nav navbar-nav nav-tabs" role="tablist">
                    <!--                     <li><a href="#top" id="home-btn">Home</a></li> -->
                    <li><a href="#about-me" id="about-btn">About Me</a></li>
                    <li><a href="#portfolio" id="portfolio-btn">Portfolio</a></li>
                    <li><a href="#contact" id="contact-btn" href="contact">Contact Me</a></li>
                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container-fluid -->
    </nav>
    <div class="container">
        <!--       <span id="top" ></span> -->
        <!-- section -> div.container -> div.row -> div.col -->
        <!--         <header class="header-content">
            <div class="container">
            
                <h1>Heading</h1>
            </div>
        </header> -->
        <!-- About me section -->
        <span id="about-me" class="anchor"></span>
        <section class="section about-me">
            <div class="row">
                <div class="col-sm-8">
                    <div class="push-down">
                        <h2><em>A little about me...</em></h2>
                        <p class="lead"><em>Hi, I'm John. I've been a fan of technology for a very long time. I'm proficient with Linux and backend web services, but recently I find myself more interested in creating instead of just hosting websites, so I signed up with Free Code Camp and I've really been enjoying the course! </em></p>
                    </div>
                </div>
                <img class="center-block push-down thumbnail" src="http://orlop.net/images/BibleTux.gif">
            </div>
        </section>
        <!-- projects section -->
        <span id="portfolio" class="anchor"></span>
        <section class="section portfolio">
            <div class="flex">
                <h2 class="text-center">Portfolio</h2>
                <div class="row text-center center-block">
                    <div class="col-md-3 col-sm-6">
                        <div class="thumbnail placeholder center-block">
                            <p class="lead"><em>Placeholder</em></p>
                        </div>
                    </div>
                    <div class="col-md-3 col-sm-6">
                        <div class="thumbnail placeholder center-block">
                            <p class="lead text-center"><em>Placeholder</em></p>
                        </div>
                    </div>
                    <div class="col-md-3 col-sm-6">
                        <div class="thumbnail placeholder center-block">
                            <p class="lead text-center"><em>Placeholder</em></p>
                        </div>
                    </div>
                    <div class="col-md-3 col-sm-6">
                        <div class="thumbnail placeholder center-block">
                            <p class="lead text-center"><em>Placeholder</em></p>
                        </div>
                    </div>
                    <div class="col-md-3 col-sm-6">
                        <div class="thumbnail placeholder center-block">
                            <p class="lead text-center"><em>Placeholder</em></p>
                        </div>
                    </div>
                    <div class="col-md-3 col-sm-6">
                        <div class="thumbnail placeholder center-block">
                            <p class="lead text-center"><em>Placeholder</em></p>
                        </div>
                    </div>
                    <div class="col-md-3 col-sm-6">
                        <div class="thumbnail placeholder center-block">
                            <p class="lead text-center"><em>Placeholder</em></p>
                        </div>
                    </div>
                    <div class="col-md-3 col-sm-6">
                        <div class="thumbnail placeholder center-block">
                            <p class="lead text-center"><em>Placeholder</em></p>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- contact section -->
        <span id="contact" class="anchor"></span>
        <section class="section contact">
            <div class="row">
                <div class="col-xs-12 text-center center-block">
                    <p class="lead">Find me on... </p>
                    <a href="https://www.facebook.com/nymusicman"><i id="social-fb" class="fa fa-facebook-square fa-5x social"></i></a>
                    <a href="https://twitter.com/nymusicman"><i id="social-tw" class="fa fa-twitter-square fa-5x social"></i></a>
                    <a href="https://plus.google.com/112969116759191707889"><i id="social-gp" class="fa fa-google-plus-square fa-5x social"></i></a>
                    <a href="mailto:john@gracepointemedia.com"><i id="social-em" class="fa fa-envelope-square fa-5x social"></i></a>
                </div>
            </div>
        </section>
    </div>
    <footer class="section">
        <div class="row">
            <div class="container-fluid">
                <div class="text-center center-block">
                    &copy;John O'Keefe
                </div>
            </div>
        </div>
    </footer>
</body>
              
            
!

CSS

              
                body {
    position: relative;
    background-color: #1D1F20;
    padding-top: 50px;
}

.push-down {
    margin-top: 80px;
}

.about-me {
    background-color: #cecece;
}

.about-me p {
    padding: 0 100px;
}

.about-me h2 {
    padding: 0 75px;
}

.portfolio {
    background-color: #a8a6a6;
}

.contact {
    background-color: #939393;
}

.placeholder {
    width: 200px;
    height: 200px;
    background: #ffffff;
    /* Old browsers */
    background: -moz-linear-gradient(-45deg, #ffffff 0%, #f6f6f6 47%, #ededed 100%);
    /* FF3.6-15 */
    background: -webkit-linear-gradient(-45deg, #ffffff 0%, #f6f6f6 47%, #ededed 100%);
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(135deg, #ffffff 0%, #f6f6f6 47%, #ededed 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed', GradientType=1);
    /* IE6-9 fallback on horizontal gradient */
    margin-top: 15px;
    margin-bottom: 25px;
}

.portfolio p {
    padding-top: 75px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    min-height: 100vh;
}

footer {
    background-color: #706666;
}

.social:hover {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -o-transform: scale(1.1);
}

.social {
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -o-transform: scale(0.8);
    -webkit-transition-duration: 0.5s;
    -moz-transition-duration: 0.5s;
    -o-transition-duration: 0.5s;
}

#social-fb:hover {
    color: #3B5998;
}

#social-tw:hover {
    color: #4099FF;
}

#social-gp:hover {
    color: #d34836;
}

#social-em:hover {
    color: #f39c12;
}

.fa {
    padding: 0 15px;
}

.anchor {
    display: block;
    height: 70px;
    margin-top: -70px;
    visibility: hidden;
}
              
            
!

JS

              
                $.localScroll();
              
            
!
999px

Console