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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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

              
                <link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>
   body{
   background-color: #133253;
   font-family: Raleway, Arial;
   }
   #about{
   text-align: center;
   background-color: #4B698B;  
   padding: 25px;
   border-radius: 2px;
   }
   div.scrollmenu {
   background-color: #333;
   overflow: auto;
   white-space: nowrap;
   position: sticky;
   top: 0;
   }
   div.scrollmenu a {
   display: inline-block;
   color: white;
   text-align: center;
   padding: 14px;
   text-decoration: none;
   }
   div.scrollmenu a:hover {
   background-color: #777;
   }
   #profile_pic{
   width: auto;
   height: auto;
   max-width: 150px;
   max-height: 150px;
   text-align: right;
   border-radius: 2px;
   }
   #portfolio {
   background-color: #738CA6;
   border-radius: 2px;
   padding: 25px;
   }
   hr { 
   display: block;
   margin-top: 0.5em;
   margin-bottom: 0.5em;
   margin-left: auto;
   margin-right: auto;
   border-width: 2px;
   border-color: #dfe2ea;
   }
   .crop {
   object-fit: cover;
   width:330px;
   height:330px;
   padding: 10px;
   }
   #contact_section {
   background-color: #4B698B;  
   padding: 25px;
   border-radius: 2px;
   }
   input {
   display: block;
   margin: 6px;
   width: 25%;
   padding: 12px 20px;
   border: 2px solid white;
   border-radius: 2px;
   }
   .button {
   background-color: #555555; 
   border: none;
   color: white;
   padding: 15px 32px;
   text-align: center;
   text-decoration: none;
   display: inline-block;
   margin-left: 5px;
   font-size: 16px;
   -webkit-transition-duration: 0.4s; 
   transition-duration: 0.4s;
   border-radius: 2px;
   }
   .button:hover {
   background-color: white; 
   color: #133253;
   }
   .footer{
   background-color: #738CA6;
   border-radius: 2px;
   padding: 25px;
   }
   .fa {
   padding: 20px;
   padding-right: 40px;
   font-size: 30px;
   width: 50px;
   text-align: center;
   text-decoration: none;
   }
   .fa-facebook {
   background: #3B5998;
   color: white;
   }
   .fa:hover {
   opacity: 0.7;
   }
   .fa-twitter {
   background: #55ACEE;
   color: white;
   }
</style>
<!-- CSS ABOVE 
   -->
<div class="scrollmenu">
   <a href="#about">About</a>
   <a href="#portfolio">Portfolio</a>
   <a href="#contact">Contact</a>
   ...
</div>
<div id="about" class="container">
   <div class="row">
      <div class="col-md-8">
         <h4>B. Blanchard</h4>
         <hr width= "50%">
         <h3>Student web developer - Graphics artist</h3>
         <hr>
         <h5>Independant graphics artist based in France. Currently learning web development.</h5>
      </div>
      <div class="col-md-4"> 
         <img id="profile_pic" src="https://68.media.tumblr.com/40aaca69406585422e42900244d523fd/tumblr_ok68dxVtO91td9me6o1_500.jpg">
      </div>
   </div>
</div>
<div id="portfolio" class="container">
   <h2 style="text-align: center">Portfolio</h2>
   <hr width="25%">
   <row>
   <div>
      <img class="crop"  src="http://www.belthrak.com/uploads/9/4/6/6/94660306/berd1.jpg">
      <img class="crop" src="http://www.belthrak.com/uploads/9/4/6/6/94660306/img-3154.jpg">
      <img class="crop" src="http://www.belthrak.com/uploads/9/4/6/6/94660306/eyes.jpg">
      <img class="crop" src="http://www.belthrak.com/uploads/9/4/6/6/94660306/11415588-646155858818226-6476909390325722210-o.jpg">
      <img class="crop" src="http://www.belthrak.com/uploads/9/4/6/6/94660306/arttt_1.jpg">
      <img class="crop" src="http://www.belthrak.com/uploads/9/4/6/6/94660306/hand.jpg">
   </div>
</div>
<div style="width:100%;">
   <div id="wrap">
      <div id="left" >
         <div id="contact_section" class="container">
            <h3 style="text-align: center;">Contact me</h3>
            <hr width="25%">
            <div style="display: inline-block; width: 90%;">
               <div id="contact">
                  <br>
                  <input type="text" placeholder="Name" required>
                  <input type="text" placeholder="Email" required>
                  <input type="text" placeholder="Phone number">
                  <input type="text" placeholder="Message" required> 
                  <button class="button" type="submit">Submit</button>
               </div>
            </div>
            <p>    Feel free to message me if you have any question or request, I'll make sure to reply as soon as possible.</p>
            <div style="text-align: center;">
               <a href="#" target='_blank' class="fa fa-facebook"></a>
               <a href="#" target='_blank' class="fa fa-twitter"></a>
            </div>
         </div>
      </div>
   </div>
</div>
<br><br>
<div class="footer">
   <h4>About this page</h4>
   <br>
   <div style="float: left;">
      <p>This page was made for the purpose of a project on <a href="https://www.freecodecamp.org"  target='_blank'>freeCodeCamp</a>. <br>Please don't copy or use any content without authorisation.</p>
   </div>
   <br>
</div>
</div>
</div>
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console