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 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

              
                <!-- MUST IMPLEMENT JQUERY JS BEFORE ANY BOOTSTRAP TO MAKE SURE BOOTSTRAP PLUGINS WORK -->
<html>

<head>
  <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" />
  <link href="https://fonts.googleapis.com/css?family=Fascinate+Inline|Anton|Raleway:200|Megrim|Josefin+Sans:700|Julius+Sans+One|Six+Caps" rel="stylesheet">
</head>

<!--2 divs with .container-fluid and .row respectively, for the best horizontal alignment possible w/o scroll bar ...-->

<body data-spy="scroll" data-target="#main-nav" data-offset="121">
  <!-- NAVIGATION BAR -->
  <nav id="main-nav" class="nav justify-content-end fixed-top flex-column flex-md-row">
    <a href="#" class="navbar-brand flex-md-fill text-md-center">marouane <span>rassili</span></a>
    <a href="#home" class="nav-link home active flex-md-fill text-md-center">Home</a>
    <a href="#about" class="nav-link about flex-md-fill text-md-center">About</a>
    <a href="#gallery" class="nav-link gallery flex-md-fill text-md-center">Gallery</a>
    <a href="#contact" class="nav-link contact flex-md-fill text-md-center">Contact</a>
  </nav>
  <!-- WEBPAGE CONTENT -->
  <section id="home" class="text-center">
    <div class="rectangle">
      <h1>welcome to my portfolio</h1>
    </div>
  </section>
  <section id="about" class="text-center">
    <p class="text-justify"><i class="fa fa-angle-right"></i> Hi, I'm Marouane. A beginner Web Developer based in Morocco! I have a passion for web developement and love to create for web and mobile devices. I'm currently working towards certification through <a href="https://www.freecodecamp.org">freeCodeCamp</a></p>
  </section>
  <section id="gallery" class="container-fluid text-center">
    <div>
      <h1>These are my completed projects</h1>
      <div class="row">
        <div class="col-md">
          <a href="https://codepen.io/mrassili/full/wPxpgL"><img src="https://res.cloudinary.com/ddbyzw2mz/image/upload/v1548986851/Webp.net-resizeimage.png"></a>
        </div>
        <div class="col-md"><a href="https://mrassili.github.io/currency-converter-alc/"><img src="https://res.cloudinary.com/ddbyzw2mz/image/upload/v1548987108/Webp.net-resizeimage_2.png" alt="Currency Converter"></a>

        </div>
        <div class="col-md"><a href="https://wonderful-bell-793a13.netlify.com/get-started"><img src="https://res.cloudinary.com/ddbyzw2mz/image/upload/v1548986133/Screen_Shot_2019-02-01_at_2.53.58_AM.png" alt="Nutrition Tracker Form"></a>

        </div>
        <div class="row">
          <div class="col-md"><a href="https://github.com/mrassili/nutrition-tracker-react"><img src="https://res.cloudinary.com/ddbyzw2mz/image/upload/v1548987040/Webp.net-resizeimage_1.png" alt="Nutrition Tracker"></a>

          </div>
          <div class="col-md"><img src="https://image.ibb.co/jtjpam/rsz_1adobestock_93505312_Cropped.jpg"></div>
          <div class="col-md"><img src="https://image.ibb.co/bHTbMR/rsz_4rsz_adobestock_94467275_Cropped.jpg" alt="placeholder"></div>
        </div>
      </div>
  </section>
  <section id="contact" class="text-center">
    <p class="text-justify">Excited to chat about working together on your new project?<br>Or, just want to write a quick note to say hello?<br>Either way, I’d be happy to hear from you!<br><i class="fa fa-hand-o-right"></i> <span>mrassili@aol.com</span></p>
    <br><strong>FOLLOW ME</strong>
    <div class="text-center">
      <a href="https://www.facebook.com/mrassili"><i class="fa fa-facebook"></i></a>
      <a href="https://twitter.com/marouanerassili"><i class="fa fa-twitter"></i></a>
      <a href="https://github.com/mrassili"><i class="fa fa-github"></i></a>
      <a href="https://www.linkedin.com/in/mrassili"><i class="fa fa-linkedin"></i></a>
    </div>
  </section>
</body>

</html>
              
            
!

CSS

              
                nav {
  background-color: white;
  height: 121px;
}
.navbar-brand {
  font-family: Megrim;
  color: #ff2400 !important;
  font-weight: bold;
  text-transform: capitalize;
  letter-spacing: 1px;
  margin-top: auto;
  margin-bottom: auto;
  font-size: 25px !important;
  border: 2px solid #ff2400;
  margin-left: 30px;
  padding: 0 0 0 6px !important;
}
.home {
  margin-left: auto !important;
}
.home,
.gallery,
.about,
.contact {
  font-family: Raleway "Black";
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ff2400 !important;
  margin: auto 35px auto 0;
}
.navbar-brand span {
  background-color: #ff2400;
  color: white !important;
  display: inline-block;
  padding-right: 6px;
  padding-left: 9px;
}
body {
  height: 100vh;
}
.active {
  background-color: #ff2400;
  color: white !important;
  border-radius: 20px;
}
.nav-link:hover:not(.active) {
  background-color: #ff2400;
  color: white !important;
  border-radius: 20px;
  opacity: 0.4;
}
.rectangle {
  width: auto;
  height: auto;
  border: 1px solid white;
  margin: 200px auto;
  display: inline-block;
}
#home {
  background: url("https://image.ibb.co/i1Qu1R/Adobe_Stock_123146928.png")
    no-repeat fixed;
  background-size: cover;
  height: auto;
  width: auto;
  position: relative;
  top: 121px;
}
#home h1 {
  font-family: Six Caps;
  letter-spacing: 7px;
  font-size: 50px;
  margin: 100px 100px;
  color: white;
}
#gallery h1 {
  font-family: Raleway;
  color: black;
  letter-spacing: 3px;
  margin-bottom: 25px;
}
#gallery {
  background: white;
  height: auto;
  position: relative;
  top: 121px;
}
img {
  width: 100%;
  height: 100%;
  border: 10px ridge transparent;
  opacity: 0.7;
}
/* columns */
#gallery > div > div > div {
  padding: 0;
  margin: -5px;
}
/* rows */
#gallery > div > div {
  width: 80%;
  margin-right: auto;
  margin-left: auto;
}
#gallery > div {
  display: inline-block;
  margin: 100px auto;
}
img:hover {
  border-style: none;
  opacity: 1;
}
#about {
  height: auto;
  background: #ff0400;
  color: white;
  position: relative;
  top: 121px;
}
#about p {
  width: 60%;
  display: inline-block;
  margin: 200px auto;
  font-family: Raleway;
  font-size: 35px;
}
p a {
  color: white;
  padding: 0 6px;
}
p a:hover {
  color: white;
}
#contact {
  color: white;
  height: auto;
  background: #202020;
  position: relative;
  top: 121px;
}
#contact p {
  display: inline-block;
  font-size: 18px;
  font-family: Raleway;
  width: 40%;
  margin: 50px auto;
}
#contact a {
  text-decoration: none !important;
  color: white;
}
#contact div {
  font-size: 20px;
  letter-spacing: 15px;
}
#contact p span {
  letter-spacing: 5px;
  font-size: 20px;
}

              
            
!

JS

              
                $(document).ready(function() {
  
});
              
            
!
999px

Console