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

            
              <html>
  <head>
    <title>CCS Portfolio</title>
  </head>
  <body>
    <div class = "container-fluid">
      <!--navBar-->
      <!--<div class = "nav">
          <ul>
            <li><a href="#">CSS</a></li>
            <li><a href="#">HOME</a></li>
            <li><a href="#Habits">HABITS</a></li>
            <li><a href="#Contacts">CONTACATS</a></li>
          </ul>
      </div>-->
      <div class="topnav" id="myTopNav">
        <a href = "#">CSS</a>
        <a href = "#">HOME</a>
        <a href = "#Habits">HABITS</a>
        <a href = "#Contacts">CONTACTS</a>
      </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 width = "280" height = "580" src ="https://s-media-cache-ak0.pinimg.com/originals/c1/2b/18/c12b18287728799cb7f9528a9261273b.jpg" alt = "@" /></div>
          <div class = "image"><img width = "280" height = "580" src ="https://s-media-cache-ak0.pinimg.com/originals/a9/a5/63/a9a5638a82e802ec44a66df6e7d00a30.jpg" alt = "@" /></div>
          <div class = "image"><img width = "280" height = "580" src ="https://s-media-cache-ak0.pinimg.com/originals/f5/29/eb/f529eb46b5d98325f43cb94df3fab8a2.jpg" alt = "@" /></div>
          <div class = "image"><img width = "280" height = "580" src ="https://s-media-cache-ak0.pinimg.com/originals/4a/fc/66/4afc66967e52d499245f0510fb321595.jpg" 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;
  font-size: 300%;
}
.nav ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
}*/
/* Add a black background color to the top navigation */
.topnav {
    background-color: #333;
    overflow: hidden;
  margin-bottom: 0%;
}
/* Style the links inside the navigation bar */
.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

/* Change the color of links on hover */
.topnav a:hover {
    background-color: #ddd;
    color: black;
}

/* Add a color to the active/current link */
.topnav a.active {
    background-color: #4CAF50;
    color: white;
}
.container-fluid{
  padding-left: 0px;
  padding-right: 0px;
}

#head_image_banner{
  margin-top: 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-color: #333;
  color: #999;
  padding-top: 2%;
  padding-bottom: 1%;
}

#head_text{
  padding-left: 20%;
}
h1{
  margin: 0px;
  padding: 10px;
}

            
          
!

JS

            
              
            
          
!
999px

Console