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

              
                <html>
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body data-spy="scroll" data-target="#myNavbar" data-offset="50">

<nav class="navbar navbar-default navbar-fixed-top">
  <div class="container-fluid">
    <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>                        
      </button>
      <a class="navbar-brand" href="#">WebSiteName</a>
    </div>
    <div>
      <div class="collapse navbar-collapse" id="myNavbar">
        <ul class="nav navbar-nav navbar-right">
          <li><a href="#section1">ABOUT</a></li>
          <li class="active"><a href="#section2">PORTFOLIO</a></li>
          <li><a href="#section3">CONTACT</a></li>
        </ul>
      </div>
    </div>
  </div>
</nav>    

<!--<div class="container">-->
    <div id="section1" class="container">
        <div class="row">
            <div class="col-sm-12 col-md-8 col-lg-8">
                <div><h2>Web designer in training. Looking to become a full-stack web developer. 
                    Also interested in Java programming.</h2> </div>
                <ul class="separator">
                    <li class="separatorline"></li>
                    <li class="glyphicon glyphicon-chevron-left"></li>
                    <li class="glyphicon glyphicon-chevron-right"></li>
                    <li class="separatorline"></li>
                </ul>
                
                <div><h1>Full-stack web developer</h1></div>
            </div>
            <div class="col-sm-12 col-md-4 col-lg-4">
                <img src="https://image.ibb.co/fpVrLv/wd1.jpg" alt="wevdev worstation" class="imageresize" />
            </div>
        </div>
    </div>

    <div id="section2" class="container" style="text-align: center;">
        <h3 class="title-section">PORTFOLIO</h3>
        <ul class="separator" >
            <li class="separatorline"></li>
            <li class="glyphicon glyphicon-chevron-left"></li>
            <li class="glyphicon glyphicon-chevron-right"></li>
            <li class="separatorline"></li>
        </ul>
        <div class="row">
            <div class="col-lg-6 col-md-12 col-sm-12">
                <img src="https://image.ibb.co/dn4eOF/wd_Sousa_Mendes.png" alt="My first website" class="resize2"/>
            </div>
            <div class="col-lg-6 col-md-12 col-sm-12">
                <img src="https://image.ibb.co/nrR9OF/wd2.jpg" alt="web dev 2" class="resize2"/>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-6 col-md-12 col-sm-12">
                <img src="https://image.ibb.co/c1KDiF/wd3.jpg" alt="web dev 3" class="resize2"/>
            </div>
            <div class="col-lg-6 col-md-12 col-sm-12">
                <img src="https://image.ibb.co/nrR9OF/wd2.jpg" alt="web dev 4" class="resize2"/>
            </div>
        </div>
    </div>

    <div id="section3" class="container">
        <h3 class="title-section">CONTACT ME</h3>
        <ul class="separator">
            <li class="separatorline"></li>
            <li class="glyphicon glyphicon-chevron-left"></li>
            <li class="glyphicon glyphicon-chevron-right"></li>
            <li class="separatorline"></li>
        </ul>
        <div class="row" >
            <div class="col-lg-5 col-md-5 col-sm-12" >
                <form>
                    <div class="form-group">
                        <div id="container" class="formWrapper">
                            <p>Name</p>
                            <p style="visibility:hidden">Name</p>
                            <input type="text" class="form-control" name="namefield" id="name" placeholder="Name" />
                         </div>
                        <hr />
                        <div id="containeremail" class="formWrapper">
                            <p>Email</p>
                            <p style="visibility:hidden">Name</p>
                            <input type="email" class="form-control" id="email" placeholder="Email address">
                        </div>
                            <hr />
                        <div  id="containerphone" class="formWrapper">
                            <p>Phone</p>
                            <p style="visibility:hidden">Name</p>
                            <input type="text" class="form-control" id="phonenumber" placeholder="Phone number">
                        </div>
                            
                            <hr />
                        <div id="containermessage" class="formWrapper">
                            <p>Message</p>
                            <p style="visibility:hidden">Name</p>
                            <textarea class="form-control" rows="5" id="messagearea" placeholder="Message"></textarea>
                        </div>
                            <br />
                            
                        </div>
                </form>
            </div>
            <div class="col-lg-6 col-md-6 col-sm-12 col-lg-offset-1 col-md-offset-1">
                <h3 style="padding-top:1em;" >Leave your contact data and I will respond ASAP.</h3>
                
            </div>
        </div>
        <div class="row">
            <div class="col-lg-5 col-md-5 col-sm-12">
                <button type="submit" class="btn btn-default" style="font-size:20px;">Submit</button>
            </div>
            <div class="col-lg-6 col-md-6 col-sm-12 col-lg-offset-1 col-md-offset-1">
                <h3 style="padding-bottom:0.5em;">No spam or soliciting</h3>
            </div>
        </div>
    </div>
    <!--</div>-->
    <div id="section4" class="container-fluid">
        <div class="row">
            <div class="col-lg-3 col-md-4 col-sm-8 col-lg-offset-2 col-md-offset-2 col-sm-offset-2">
                <h3 style="margin-bottom:2em;margin-top:2em;">ABOUT THIS PAGE</h3>
                <p style="font-size:20px;margin-bottom:0; padding-bottom:0;">Made with <span class="glyphicon glyphicon-glass"/><span style="font-size:20px;font-family:Serif;"> and </span><span class="glyphicon glyphicon-music"/></p>
                <p style="font-size:20px;margin-bottom:2em;">by <a href="#" style="color:darkred;">Bogdan Ciomaga</a><span>.</span></p>
            </div>
            <div class="col-lg-3 col-md-4 col-sm-8 col-lg-offset-2 col-md-offset-2 col-sm-offset-2" >
                <h3 style="margin-bottom:2em;margin-top:2em;"> AROUND THE WEB</h3>
                <ul id="socialbuttons" style="color:white;">
                    <li><a href="http://linkedin.com"><i class="fa fa-linkedin fa-3x"></i></a></li>
                    <li><a href="http://github.com/"><i class="fa fa-github fa-3x"></i></a></li>
                    <li><a href="http://twitter.com/"><i class="fa fa-twitter fa-3x"></i></a></li>
                    <li><a href="http://flickr.com/"><i class="fa fa-flickr fa-3x"></i> </a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="container-fluid" id="footer1" >
        <h4 style="padding-top:20px;"> &#169; 2017. Bogdan Ciomaga</h4>
    </div>
</body>
</html>

              
            
!

CSS

              
                body {
    position: relative;
    font-family:Serif;
}

/* navbar */
.navbar-default {
    background-color: #b30000;
    border-color: #b30000;
}
/* Title */
.navbar-default .navbar-brand {
    color: white;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
    color: navajowhite;
    background-color: #660000;
}
/* Link */
.navbar-default .navbar-nav > li > a {
    color: white;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: navajowhite;
    background-color: #660000;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: navajowhite;
    background-color: #660000;
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
    color: navajowhite;
    background-color: #660000;
}
/* Caret */
.navbar-default .navbar-nav > .dropdown > a .caret {
    border-top-color: white;
    border-bottom-color: white;
}
.navbar-default .navbar-nav > .dropdown > a:hover .caret,
.navbar-default .navbar-nav > .dropdown > a:focus .caret {
    border-top-color: navajowhite;
    border-bottom-color: navajowhite;
}
.navbar-default .navbar-nav > .open > a .caret,
.navbar-default .navbar-nav > .open > a:hover .caret,
.navbar-default .navbar-nav > .open > a:focus .caret {
    border-top-color: navajowhite;
    border-bottom-color: navajowhite;
}
/* Mobile version */
.navbar-default .navbar-toggle {
    border-color: darkred;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: #660000;
}
.navbar-default .navbar-toggle .icon-bar {
    background-color: white;
}

 .navbar-default .navbar-nav > .active{
   color: navajowhite;
    background-color: #660000;
 }

.nav .open > a {
    background-color: #660000;
}
/**/
.nav>li{
    width:120px;
    margin-right: 5px;
}



@media (max-width: 767px) {
    .navbar-default .navbar-nav .open .dropdown-menu > li > a {
        color: #777;
    }
    .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
    .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
          color: #333;
    }
}

/*sections-----------------------------------------------------------------*/

#section1 {
    padding-top: 120px;
    min-height: 100px;
    color: #fff;
    background-color: gray;
    padding-bottom: 3em;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    margin-bottom:0.1em;
    padding-left:3em;
    padding-right:3em;
}

.separator{
   list-style-type:none;
   text-align:center;
}

    .separator > li {
        display: inline-block;
    }

.separatorline {
    height: 0.5em;
    width: 25%;
    background-color: darkgray;
    position: relative;
    top: 50%;
    transform: translateY(-50%)
}
/*resizes image in section 1*/
.imageresize{
    max-width:100%;
    width:100%;
    height:auto;
    margin-top:3em;
}

#section2, #section3 {
    padding-top: 2.5em;
    min-height: 100px;
    color: grey;
    background-color: #d9d9d9;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
/*resizes images in section 2*/
.resize2{
    max-width:70%;
    width:70%;
    margin-bottom:2em;
    margin-top:2em;
}
/*Animations in the contact forms------------------------------------------*/
.formWrapper>p:first-child {
    position: absolute;
    background: transparent;
    color: darkred;
    text-align: left;
    font-weight: 700;
    padding-top: 0;
    padding-left: 0.8em;
    margin-left: 0;
    z-index: -1;
    opacity: 0;
    top:30px;
    left:5px;
}

.formWrapper{
    margin-top:1em;
    position:relative;
}

#section4 {
    min-height:250px;
    background-color: grey;
    color:#fff;
    text-align:center;
}
/*buttons for the social media websites*/
#socialbuttons {
    list-style-type:none;
    margin-bottom: 2em;
}

#socialbuttons li {
    display:inline-block;
}

    #socialbuttons li a i {
        color:#fff;
    }

    #socialbuttons li a i:hover {
        color:darkred;
    }

#footer1 {
    background-color: darkred;
    height: 80px;
    color: white;
    padding-left: 0px;
    padding-right: 0px;
    text-align:center;
}
              
            
!

JS

              
                $(document).ready(function(){
    $(".form-control").click(function(){
        $(this).closest(".formWrapper").find(">:first-child").css({"visibility":"visible","z-index":"2"}).animate({top:"0",opacity:"1"});
    }).blur(function(){
            $(this).closest(".formWrapper").find(">:first-child").animate({top:"30",opacity:"0"}, function(){
                $(this).css({"visibility":"hidden","z-index":"-1"})
            });
        });
});
              
            
!
999px

Console