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>CCS Portfolio</title>
  </head>
  <body>
    <div class = "container-fluid">
      <!--navBar-->
      <div class = "nav">
          <ul>
            <li><a href="#">CSS</a></li>
            <li class = "left"><a href="#">HOME</a></li>
            <li><a href="#Habits">HABITs</a></li>
            <li><a href="#Contacts">CONTACTs</a></li>
          </ul>
      </div>
      <div id = "head_image_banner">
        <div id = "head_text">
          <h1>I'M</h1>
          <h1>CHEUNG</h1>
          <h1>CHI</h1>
          <h1>SHING</h1>
        </div>
      </div>
      <div id = "Habits">
        <h1 id = "sub-heading" class = "text-center">Habits</h1><br />
        <div class = "row" id  = "img_row">
          <div class = "image"><img src ="http://via.placeholder.com/280x560" alt = "@" /></div>
          <div class = "image"><img src ="http://via.placeholder.com/280x560" alt = "@" /></div>
          <div class = "image"><img src ="http://via.placeholder.com/280x560" alt = "@" /></div>
          <div class = "image"><img src ="http://via.placeholder.com/280x560" alt = "@" /></div>
        </div>        
      </div>
      <div id = "Contacts">
        <h1 id = "sub-heading" class = "text-center">Contacts</h1>
        <div class = "row">
          <div class = "col-md-4 col-md-offset-2" id = "info_box"><p>Thank you for visiting my portfolio website. Hope you cna understand more about me. If you have any questions, you're welcome to leave a message on the right side message box. If you want to visit my social network, such as LinkedIn, tumblr, Google Plus, Twitter, FaceBook and instagram, you can click the social media icons below.</p></div>
          <div class = "col-md-4" id = "contact_box">
            <form>
              <input type="text" class="form-control" placeholder="Name">
              <input type="text" class="form-control" placeholder="Phone Number">
              <input type="text" class="form-control" placeholder="Email Address">
              <input type="text" class="form-control" placeholder="Message">   
              <input type="submit" name="Submit" value = "submit"/>
            </form>
          </div>
        </div>
      <div class = "row">
          <div id = "social_media_bar">
            <button class="btn btn-default"><i class="fa fa-linkedin" aria-hidden="true"></i></button>
            <button class="btn btn-default"><i class="fa fa-tumblr" aria-hidden="true"></i></button>
            <button class="btn btn-default"><i class="fa fa-google-plus" aria-hidden="true"></i></button>
            <button class="btn btn-default"><i class="fa fa-twitter" aria-hidden="true"></i></button>
            <button class="btn btn-default"><i class="fa fa-facebook" aria-hidden="true"></i></button>
            <button class="btn btn-default"><i class="fa fa-instagram" aria-hidden="true"></i></button>   
          </div>
        </div>
      </div>

      <footer class = "text-center">© 2017 by CCS.com</footer>

      
      
    </div>
  </body>
</html>
              
            
!

CSS

              
                li {
  display: inline;
}
.nav ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.container-fluid{
  padding-left: 0px;
  padding-right: 0px;
}

#head_image_banner{
  margin: 0px;
  background-image: url("https://userscontent2.emaze.com/images/dd0f742f-c83d-4970-873c-5ff315f0a43c/30e20c5544fcc97fb696a0f1f975882f.jpg");
  background-size: cover;
}
.image{
  display: inline-block;
  padding-left: 10px;
  padding-right: 10px;
}

#img_row{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#social_media_bar{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#Habits{
  margin-top: 3%;
  margin-bottom: 1%;
}

#Contacts{
  margin-top: 3%;
  margin-bottom: 1%;  
}

#sub-heading{
  padding: 40px;
  text-decoration: underline;
}

#social_media_bar{
  margin: 1%;
}

footer{
  background-image: url("https://userscontent2.emaze.com/images/dd0f742f-c83d-4970-873c-5ff315f0a43c/30e20c5544fcc97fb696a0f1f975882f.jpg");
  background-size: cover;
  padding-top: 2%;
  padding-bottom: 1%;
}

#head_text{
  padding-left: 20%;
}


              
            
!

JS

              
                
              
            
!
999px

Console