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>Portfolio Page</title>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
        <link rel="stylesheet" type="text/css" href="CSS/portfolio.css"></link>
    </head>

    <body>
        <nav class="navbar sticky-top navbar-expand-md navbar-light bg-primary">
            <div class="container">
                <a class="navbar-brand h1" href="#">Portfolio</a>
            </div>
            <div class="collapse navbar-collapse">
                <ul class="navbar-nav">
                    <li class="active navitem mr-3"><a href="" class="text-uppercase  text-dark">about </a></li>
                    <li class="navitem mr-3"><a href="#earth" class="text-uppercase  text-dark">portfolio </a></li>
                    <li class="navitem mr-5"><a href="#contact" class="text-uppercase text-dark">contact </a></li>           
                </ul>
            </div>
        </nav>
        <div class="container bg-light">
            <div class="row" id="about">
                <div class="col-md-8 my-auto">
                    <p class="text-center">Earth is the third planet from the Sun and the only object in the Universe known to harbor life. 
                        According to radiometric dating and other sources of evidence, Earth formed over 4 billion years ago.
                        Earth's gravity interacts with other objects in space, especially the Sun and the Moon,
                        Earth's only natural satellite.</p>
                    <hr>
                    <p class="text-center"> Earth revolves around the Sun in 365.26 days, 
                        a period known as an Earth year. During this time, Earth rotates about its axis about 366.26 times.</p>
                </div>
                <div class="col-md-4">
                    <img src="https://lh5.ggpht.com/DKrm3FqkfzJReSxqKoWEx8-IC6XmSOOACaR9RBMuS9C5-1kAYvd8gluk1-kwRTVk1WI=w300" class="rounded-circle mt-2" alt="cinqueterre" style="width:100%">    
                </div>
            </div>
            <div class="row mb-1" id="earth">
                <div class="col-md-12">
                    <h1 class="text-center">THE EARTH</h1>
                    <hr size="3">
                </div>
                <div class="col-md-4">
                    <div class="img-thumbnail bg-light">
                        <a href="https://en.wikipedia.org/wiki/Arora" target="_blank">
                            <img src="https://www.w3schools.com/w3images/lights.jpg" alt="arora" style="width:100%">
                        </a>
                        <div class="caption">
                            <p class="text-center font-italic">aurora</p>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="img-thumbnail  bg-light mb-3">
                        <a href="" target="_blank">
                            <img src="https://www.w3schools.com/w3images/nature.jpg" alt="nature" style="width:100%">
                        </a>
                        <div class="caption">
                            <p class="text-center">nature scene</p>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="img-thumbnail  bg-light">
                        <a href="" target="_blank">
                                <img src="https://www.w3schools.com/w3images/fjords.jpg" alt="fjords" style="width:100%">
                        </a>
                        <div class="caption">
                            <p class="text-center">nature scene</p>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="img-thumbnail bg-light">
                        <a href="https://en.wikipedia.org/wiki/Arora" target="_blank">
                            <img src="https://www.w3schools.com/w3images/lights.jpg" alt="arora" style="width:100%">
                        </a>
                        <div class="caption">
                            <p class="text-center font-italic">aurora</p>
                        </div>
                    </div>
                </div>
                <div class="col-md-4 mb-3">
                    <div class="img-thumbnail  bg-light">
                        <a href="" target="_blank">
                            <img src="https://www.w3schools.com/w3images/nature.jpg" alt="nature" style="width:100%">
                        </a>
                        <div class="caption">
                            <p class="text-center">nature scene</p>
                        </div>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="img-thumbnail  bg-light">
                        <a href="" target="_blank">
                            <img src="https://www.w3schools.com/w3images/fjords.jpg" alt="fjords" style="width:100%">
                        </a>
                        <div class="caption">
                            <p class="text-center">nature scene</p>
                        </div>
                    </div>
                </div>
            </div>
                        
            <div class="row" id="contact">
                <div class="col-md-12">
                    <h1 class="text-uppercase text-center">Contact us</h1>
                    <hr class="font-weight-bold">
                </div>
                <div class="col-md-6">
                    <form>
                        <div class="form-group">
                            <label for="username">Name</label>
                            <input type="text" class="form-control" id="username" placeholder="Name">
                        </div>
                        <div class="form-group">
                            <label for="useremail">Email address</label>
                            <input type="email" class="form-control" id="useremail"  placeholder="Enter email">
                            <small id="emailHelp" class="form-text text-muted">We'll never share your email with anyone else.</small>
                        </div>
                        <div class="form-group">
                            <label for="telephone">Telephone</label>
                            <input type="number" class="form-control" id="usertelephone" placeholder="telephone">
                            <small id="telephoneHelp" class="form-text text-muted">we'll never share your telephone with anyone elese.</small>
                        </div>
                        <div class="form-group">
                            <label for="usercomment">Comment</label>
                            <textarea class="form-control" row="5" id="usercomment"></textarea>
                        </div>
                        <button type="submit" class="btn btn-primary mb-2">Submit</button>
                        </form>
                </div>
                <div class="col-md-6">
                    <div class="col-md-12">
                    <p class="mb-4">Want to get in touch with me? Be it to request more info about myself or my experience, to ask for my resume, 
                        tips on how to solve your sudoku, random questions about the universe and the meaning of life, or even if only for 
                        some nice Fika here in stunning Toronto... just feel free to drop me a line anytime.</p>
                    <p class="mb-4">I promise to reply A.S.A.P.</p>
                    <h3 class="text-center text-info mb-4">AROUND THE WEB</h3>
                    </div>
                    <div class="row">
                        <div class="col-md-4"></div>
                        <div class="col-md-6">
                            <a href="#"><i class="fa fa-3x fa-facebook-square mr-2"  aria-hidden="true"></i></a>
                            <a href="#"><i class="fa fa-3x fa-twitter-square mr-2" aria-hidden="true"></i></a>
                            <a href="#"><i class="fa fa-3x fa-linkedin-square mr-2" aria-hidden="true"></i></a>
                            <a href="#"><i class="fa fa-3x fa-github-square mr-2" aria-hidden="true"></i></a>
                        </div>
                        <div class="col-md-2"></div>
                    </div> 
                </div>
            </div>

        </div>
        <div class="navbar navbar-expand-md navbar-light bg-primary">
            <div class="container"> 
                <p class="text-dark mx-auto">Sarah copyright@2017</p>
            </div>
        </div>

        <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
    </body>

</html>
              
            
!

CSS

              
                #about{
    font-size: 120%;
}
hr{
    border-top:5px solid#eee;
}

              
            
!

JS

              
                
              
            
!
999px

Console