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

            
              <!DOCTYPE html>
<html lang="en" dir="ltr">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
  <link rel="stylesheet" href="style.css">
  <title>JLM Pharma</title>
</head>

<body>
  <!-- Navbar -->
  <header id = "header">
    <div class="header-container">
      <img id="header-img" src=img/logo2.jpg.png> <nav id = "nav-bar">
      <ul>
        <!-- <li><a class="nav-link" href="#Home">Home</a></li> -->
        <li><a class="nav-link" href="#About">About</a></li>
        <li><a class="nav-link" href="#Services">Services</a></li>
        <li><a class="nav-link" href="#Contact">Contact</a></li>
      </ul>
      </nav>
    </div>
  </header>
  <!-- Showcase -->
  <div class="showcase-container">
    <img class="showcasepic" src=img/logo2.jpg.png> <h2>Bringing the World of Healthcare to Everyone</h2>
  </div>
  <!-- About section -->
  <section id="About">
    <div class="about-container">
      <div class="about-info">
        <h2><u>About JLM Pharmaceuticals</u></h2>
        <p>JLM Pharmaceuticals takes the world of healthcare to your doorstep. Our employees work day and night to produce quality
          research to make an impact on people's lives. We started off as a small pharmaceutical company, and now we have grown to
          a company with over 1000 employees. We are in research and development, microbial and chemical testing, and sales.
          We take on the toughest challenges. GMP is our number one priority. Check out the video below! We are JLM Pharmaceuticals</p>
      </div>
      <div class="about-video">
        <iframe id="video" width="600" height="300" src="https://www.youtube.com/embed/07NLWoPwDtg" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
      </div>
    </div>
  </section>
  <!-- Services -->
  <section id="Services">
    <div class="services">
      <h2><u>Services</u></h2>
    </div>
    <div class="services-container-rows">
      <div class="box">
        <i class="fas fa-microscope" style="font-size: 60px;"></i>
        <p id="box-paragraphs">Our research and development team work day and night to make quality drugs and devices.</p>
        <button class="btn">Learn More</button>
      </div>
      <div class="box">
        <i class="fas fa-flask" style="font-size: 60px;"></i>
        <p id="box-paragraphs-2">Our microbiology and chemical labs are always prepared to test our in-house products.</p>
        <button class="btn">Learn More</button>
      </div>
      <div class="box">
        <i class="fas fa-money-check-alt" style="font-size: 60px;"></i>
        <p id="box-paragraphs">Our top of the line sales experts are equipped ready to deliver qaulity products to our clients</p>
        <button class="btn">Learn More</button>
      </div>
    </div>
  </section>
  <!-- Contact -->
  <section id="Contact">
    <div class="contact-container">
      <div class="contact-pic">
        <i class="fas fa-address-card" style="font-size: 120px;"></i>
      </div>
      <div class="contact-form">
        <h2>Contact Us</h2>
        <form id="form" action="https://www.freecodecamp.com/email-submit">
          <input id="email" type = "email" name = "email" placeholder="Enter Email Address"><br>
          <input id="submit" type="submit">
        </form>
      </div>
    </div>
  </section>
  <!-- Footer -->
  <div class="footer-container">
    <h3>Copyright 2019, JLM Pharmaceuitcals</h3>
  </div>
</body>

</html>

            
          
!

CSS

            
              body {
  margin: 0;
  background: white;
  font-family: 'Roboto', sans-serif;
  font-weight: 800;
}

/* Logo */
#header-img {
  float: left;
  padding: 10px 0;
  width: 10vh;
  margin-left: -100px;
}

@media screen and (max-width: 600px) {
  #header-img {
    display: none;
  }
}

/* Navbar */
.header-container {
  width: 80%;
  margin: 0 auto;
}

#header {
  background: #a30e0e;
  position: fixed;
  top: 0px;
  width: 100%;
}

#header::after {
  content: "";
  display: table;
  clear: both;
}

#nav-bar {
  float: right;
}

#nav-bar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#nav-bar li {
  display: inline-block;
  margin-left: 70px;
  padding-top: 23px;
  position: relative;
}

#nav-bar a {
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
}

#nav-bar a:hover {
  color: #000;
}

#nav-bar a::before {
  content: "";
  display: block;
  height: 5px;
  width: 100%;
  background-color: #444;
  position: absolute;
  top: 0;
  width: 0%;
  transition: all ease-in-out 200ms;
}

#nav-bar a:hover::before {
  width: 100%;
}

@media screen and (max-width: 600px) {
  #nav-bar li {
    float: none;
    width: 5%;
  }
  .header-container {
    margin-left: 8px;
  }
}

/* Showcase */
.showcasepic {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.showcase-container h2 {
  text-align: center;
  margin-top: -120px;
  margin-bottom: 40vh;
  font-size: 30px;
}

/* About Section */
.about-info {
  text-align: center;
  /* width: 800px;
  margin-left: 280px; */
  margin-bottom: 50px;
}

.about-video {
  text-align: center;
}

@media screen and (max-width: 600px) {
  .about-info {
    display: none;
  }

  #video {
    width: 450px;
  }
}

/* Services section */
.services {
  text-align: center;
  margin-top: 100px;
  margin-bottom: -150px;
}

.services-container-rows {
  display: flex;
  justify-content: space-around;
  margin-top: 200px;
}

.services-container-rows div {
  border: 2px black solid;
  padding: 10px;
}

.box {
  text-align: center;
  width: 22%;
  height: 300px;
}

#box-paragraphs {
  margin-top: 60px;
}

#box-paragraphs-2 {
  margin-top: 60px;
}

.btn {
  padding: 0 20px;
  height: 40px;
  font-size: .85em;
  font-weight: 700;
  border: 3px black solid;
  background: transparent;
  cursor: pointer;
  background-color: #a30e0e;
  margin-top: 50px;
  color: white;
}

@media screen and (max-width: 600px) {
  .box {
    flex-direction: column;
    height: 400px;
  }
  #box-paragraphs-2 {
    margin-top: 41px;
  }
}

/* Contact */
.contact-container {
  text-align: center;
  margin-top: 100px;
  height: 250px;
  display: flex;
  justify-content: center;
  margin-top: 200px;
}

.contact-pic {
  width: 50%;
  margin-left: -200px;
}

.contact-form {
  border: 2px black solid width: 50%;
  margin-top: -35px;
  margin-left: -150px;
}

#email {
  border: 1px black solid;
  width: 250px;
  height: 25px;
}

#submit {
  margin-top: 15px;
  width: 100px;
  height: 30px;
  padding: 0 20px;
  font-size: .85em;
  font-weight: 700;
  border: 3px black solid;
  background: transparent;
  cursor: pointer;
  background-color: #a30e0e;
  color: white;
}

@media screen and (max-width: 600px) {
  .contact-pic {
    display: none;
  }
  .contact-form {
    margin-left: -10px;
  }
}
/* Footer */
.footer-container {
  border: 3px black solid;
  padding: 20px;
  margin-left: 200px;
  margin-right: 200px;
  background-color: #a30e0e;
}

.footer-container h3 {
  display: flex;
  justify-content: flex-end;
  color: white;
}

@media screen and (max-width: 600px) {
  .footer-container {
    width: 300px;
    margin-left: 80px;
  }
}

            
          
!

JS

            
              
            
          
!
999px

Console