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=Lobster" rel="stylesheet">
<div class="container-fluid">
  <ul class="menu">
    <li class="fm"><a href="#">Contact</a></li>
    <li class="fm"><a href="#portfoliophoto">Portfolio</a></li>
    <li class="fm"><a href="#aboutphoto">About</a></li>
    <li class="fm"><a href="#landphoto">Home</a></li>
  </ul>
  <div class="container">
    <div class="item-a">
      <img src="http://res.cloudinary.com/jamster/image/upload/v1506309877/wood-floors-background-with-concept-hd-photos_hw7msx.jpg" width="100%" alt="wood background" id="landphoto">
    </div>
    <div class="item-a">
    
      <h1 class="welcome">KP-Designs<br></h1>
      <hr width="70%">
      <br>
      <div class="text-center">
        <button class="button connect-button"><a href="http://facebook.com" target="_blank">Facebook</a></button>
        <button class="button connect-button"><a href="https://www.freecodecamp.org/jamster10" target="_blank">Freecodecamp</a></button>
        <button class="button connect-button">LinkedIn</button>
        <button class="button connect-button">GitHub</button>
      </div>
    </div>
    <div class="item-b">
      <img src="http://res.cloudinary.com/jamster/image/upload/v1506310061/902752_zsfbwj.jpg" width="100%" alt="about background" id="aboutphoto">
    </div>
    <div class="item-b">
      <h1 class="about">Welcome to designs by KP</h1>
      <div class="blurb-holder">
        <h3><br><br>Our aim is simple and elegant designs, crafted with the client in mind. <br></h3><hr color="white" width="75%"><h3> KP-Designs are unique and created from the ground up to meet your specific needs.<br><br></h3>
      </div>
    </div>
    <div class="item-c">
      <img src="http://res.cloudinary.com/jamster/image/upload/v1506376784/71433-6065305_kmrxzl.jpg" width="100%" alt="portfoliophoto" id="portfoliophoto">
    </div>
    <div class="item-c">
      <div class="portfoliopage">
        <h1>Portfolio</h1>
        <div class="portfolio-holder">
          <div class="portimage1">
            <img src="http://res.cloudinary.com/jamster/image/upload/v1506706367/Tribute_page_k82aob.png" id="port1image">
            <h4>hello</h4>
          </div>
          <div class="portimage2">
            <h1>hello2</h1>
          </div>
          <div class="portimage3">
            <h1>hello3</h1>
          </div>
        </div>
      </div>
    </div>
  </div>
              
            
!

CSS

              
                .container-fluid {
  padding: 0 0 0 0;
}
.menu {
  list-style-type: none;
  padding: 0;
  margin: 0;
  position: fixed;
  background-color: rgba(30, 30, 30, 0.8); /*https://twitter.com/_ighosh*/
  width: 100%;
  z-index: 10;
}
.fm {
  float: right;
}

.fm a {
  display: block;
  padding: 8px 12px;
  color: light-blue;
  text-decoration: none;
}
.connect-button a {
  text-decoration: none;
  color: inherit;
}
li a:hover {
  background-color: rgba(10, 10, 10, 0.8);
  color: #00bfff;
}
#landphoto,
#aboutphoto,
#portfoliophoto {
  max-height: 600px;
}
.item-a {
  grid-area: landing;
}
.item-b {
  grid-area: about;
}
.item-c {
  grid-area: portfolio;
}
.item-d {
  grid-area: contact;
}
.welcome {
  text-align: center;
  color: cream;
  font-size: 4em;
  text-shadow: 2px 2px grey;
  padding-top: 10%;
}
.container {
  font-family: "Lobster", cursive;
  overflow-x: hidden;
  padding: 0 0 0 0;
  min-width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: [column] 100%;
  grid-template-rows: [row1-start] 25% [row2-start] 25% [row3-start] 25%
    [row4-start] 25%;
  /*grid-template-rows: repeat (4 25% [row-start]);*/
  grid-template-areas: "landing landing landing landing"
    "about about about about" "portfolio portfolio portfolio portfolio"
    "contact contact contact contact";
}

.connect-button {
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1em;
  
  cursor: pointer;
  border-color: white;
  color: black;
  border-radius: 12px;
  background-color: Transparent;
}
.connect-button:focus {
  outline: 0;
}
.connect-button:hover {
  box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24),
    0 17px 50px 0 rgba(0, 0, 0, 0.19);
}
.about {
  padding: 6% 0% 0% 6%;
  color: white;
  border-top: solid 2px;
  border-color: black;
  font-size: 3.8vw;
}
.blurb-holder {
  max-width: 30%;
  max-height: 120%;

  position: absolute;
  right: 20%;
  color: white;
  background-color: rgba(30, 30, 30, 0.5);
  text-align: center;
  font-size: 3vw;
}
.portfoliopage {
  padding-top: 5%;
  text-align: center;
  color: white;
}
.portfolio-holder {
  width: 70vw;
  height:70vh;
  background-color: rgba(30, 30, 30, 0.5);

  padding-top: 10%;
  margin:  auto;
  display: grid;
  grid-template-columns: [col1] 33% [col2] 34% [col3] 33%;
  
  grid: "port1 port2 port3";
  grid-column-gap: 2%;
  grid-row-gap: 2%;
  align-content: center;
  justify-items: center;
  
  
}
.portimage1 {
  position: float;
  clear: left;
  max-width:33%;
  grid-area: port1;
  background-color: black;
  clear: left;
  
 
}

.portimage2 {
  postion: relative;
  clear: left;
  grid-area: port2;
  background-color: blue;
  max-width:34%;
}

.portimage3 {
  position:relative;
  
  max-width:33%;
  grid-area: port3;
  background-color: green;
}
#port1image{
  max-width:30%;
}
              
            
!

JS

              
                
              
            
!
999px

Console