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

              
                <div id="page-wrapper">
  <header id="header">
    <div class="logo">
       <img id="header-img"  src="https://i.postimg.cc/52FjXXtH/logo-cheese-plant.png" width="200"
            alt="plant logo"<hr><h1>The Plantacademy</h1><hr></div>
     <div class="nav-bar">
 <a class="active" href="#home">Home</a>
  <a href="#news">News</a>
  <a href="#contact">Contact</a>
       <a href="#about">About</a> 
    </div>
</header>
   <main>
  <!--grid start--->
<section id="mail">
    <h2>Hand grown plants for you home</h2>
    <form id="form" action="https://www.freecodecamp.com/email-submit">
      <input
        name="email"
        id="email"
        type="email"
        placeholder="Enter your email address"
        required
      />
      <input id="submit" type="submit" value="Get Started" class="btn" />
    </form>
  </section>

 <section class="container">
        <div>
            <img src="https://images.pexels.com/photos/4503826/pexels-photo-4503826.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940" />
            <span class="description">succulents</span>
        </div>
           <div>
            <img src="https://images.pexels.com/photos/2922353/pexels-photo-2922353.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500" />
            <span class="description">Indoor  Plants</span>
        </div>
           <div>
            <img src="https://images.pexels.com/photos/3125197/pexels-photo-3125197.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940" />
            <span class="description">Cheese plants</span>
        </div>
 <div>
            <img src="https://images.pexels.com/photos/4207905/pexels-photo-4207905.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" />
            <span class="description">Care</span>
        </div>
    <div>
            <img src=https://images.pexels.com/photos/4507746/pexels-photo-4507746.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260/>
            <span class="description">Growing</span>
        </div> <div>
            <img src="https://images.pexels.com/photos/5529583/pexels-photo-5529583.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" />
            <span class="description">Tools</span>
        </div>
   <div>
            <img src="https://images.pexels.com/photos/58086/pexels-photo-58086.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260" />
            <span class="description">miscellaneous</span>
        </div>
    <section id="how-it-works">
          <iframe width="560" height="315" src="https://www.youtube.com/embed/GaqRNa1s6IM" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
      </div> 
     </section>
     <body>
        <footer>
      <!-- Footer main -->
      <section class="ft-main">
        <div class="ft-main-item">
          <h2 class="ft-title">Company info</h2>
          <ul>
            <li><a href="#">Terms and Conditions</a></li>
            <li><a href="#">Privacy and Cookies</a></li>
            <li><a href="#">Sustainability</a></li>
            <li><a href="#">Affiliates</a></li>
            <li><a href="#">Careers</a></li>
          </ul>
        </div>
        <div class="ft-main-item">
          <h2 class="ft-title">Customer Services</h2>
          <ul>
            <li><a href="#">Contact Us</a></li>
            <li><a href="#">Frequently Asked Questions</a></li>
            <li><a href="#">Delivery Information</a></li>
            <li><a href="#">My Account</a></li>
          </ul>
        </div>
        <div class="ft-main-item">
          <h2 class="ft-title">Contact</h2>
          <ul>
            <li><a href="#">Help</a></li>
            <li><a href="#">Sales</a></li>
            <li><a href="#">Advertise</a></li>
          </ul>
        </div>
        <div class="ft-main-item">
          <h2 class="ft-title">Stay Updated</h2>
          <p>Subscribe to our newsletter to get our latest news.</p>
          <form>
            <input type="email" name="email" placeholder="Enter email address">
            <input type="submit" value="Subscribe">
          </form>
        </div>
      </section>
     
      <!-- Footer social -->
      <section class="ft-social">
        <ul class="ft-social-list">
          <li><a href="#"><i class="fab fa-facebook"></i></a></li>
          <li><a href="#"><i class="fab fa-twitter"></i></a></li>
          <li><a href="#"><i class="fab fa-instagram"></i></a></li>
        
          <li><a href="#"><i class="fab fa-youtube"></i></a></li>
        </ul>
      </section>
     
      <!-- Footer legal -->
      <section class="ft-legal">
        <ul class="ft-legal-list">
          <li><a href="#">Terms &amp; Conditions</a></li>
          <li><a href="#">Privacy Policy</a></li>
          <li>&copy; 2021 Copyright The Plantacademy.</li>
        </ul>
      </section>
    </footer>
            </body>

  
   
    
 
      
  
              
            
!

CSS

              
                /* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-image: url("https://i.postimg.cc/zXgg421H/pexels-photo-large.jpg");
  background-repeat: no-repeat;
  background-size:cover;
  background-attachment:fixed;
  }
#page-wrapper {
  position: relative;
}

h1, h2{
  color:white;
  font-family: 'Chela One', cursive;
  postion:relative;
}

.nav-bar a {
  display: inline-block;
  color: white;
  text-align: center;
  padding: 24px;
  text-decoration: none;
  font-size: 30px;
  border-radius: 5px;
}

.nav-bar a:hover {
  background-color: #ddd;
  color: green;
}

.nav-bar a.active {
  background-color: green;
  color: white;
}
.container {
  display: grid;
  grid-gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 200px;

}

.container > div > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img {
  border-radius: 30px;
  padding: 5px;
}

.description {
  display: none;
  position: absolute;
  color:white;
  padding-left:20px;
 
}

.container > div:hover {
  transform: scale(1.1);
}
.container > div:hover .description {
  display: block;
  text-align: center;
}

.container > div:hover img {
  opacity: 0.7;
}

#mail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 200px;
  margin-top: 50px;
}

#mail > h2 {
  margin-bottom: 20px;
  font-family: 'Chela One', cursiv​;
}

#mail input[type='email'] {
  max-width: 275px;
  width: 100%;
  padding: 10px;
  
}

#mail input[type='submit'] {
  max-width: 150px;
  width: 100%;
  height: 30px;
  margin: 15px 0;
  border: 0;
  background-color: #f1c40f;
}

#mail input[type='submit']:hover {
  background-color: green;
  transition: background-color 1s;
}
  
  #how-it-works {
  margin-top: 0px;
  display: flex;
  justify-content: center;
    
}

#how-it-works > iframe {
  height: 200px;
  width: 100%;
  border-radius: 30px;
  padding-top:5px;

}

footer {
    background-color: #619C84;
    color: #bbb;
    line-height: 1.5;
    margin-top: 50px;
 
 }

footer a {
    text-decoration: none;
  color: white;
}
  footer ul{
    list-style: none;
  }
 

a:hover {
    text-decoration: underline;
 
}
.ft-title {
    color: #fff;
    font-family: ’Merriweather’, serif;
    font-size: 1.375rem;
    padding-bottom: 0.625rem;
  
}
  
  .ft-main {
    padding: 1.25rem 1.875rem;
    display: flex;
    flex-wrap: wrap;
}
.ft-main-item {
    padding: 1.25rem;
    min-width: 12.5rem /*200px*/;
}
.body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}
.container {
    flex: 1;    
}
  ft-social {
    padding: 0 1.875rem 1.25rem;
}
.ft-social-list {
    display: flex;
    justify-content: center;
    border-top: 1px #777 solid; 
    padding-top: 1.25rem;
  
  
}
.ft-social-list li {
    margin: 0.8rem;
    font-size: 2.5rem;
 
}

.ft-legal {
    padding: 0.9375rem 1.875rem;
    background-color: #333;
}
.ft-legal-list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}
.ft-legal-list li {
    margin: 0.125rem 0.625rem;
    white-space: nowrap;
}
/* one before the last child */
.ft-legal-list li:nth-last-child(2) {
    flex: 1;       /* same as flex-grow: 1; */
}

form {
    display: flex;
    flex-wrap: wrap;
}
input[type="email"] {
    border: 0;
    padding: 0.625rem;
    margin-top: 0.3125rem;
}
input[type="submit"] {
    background-color: #00d188;
    color: #fff;
    cursor: pointer;
    border: 0;
    padding: 0.625rem 0.9375rem;
    margin-top: 0.3125rem;
}
 
  





  


  
  



  
 
  
 
  
 
 
  
  


              
            
!

JS

              
                
              
            
!
999px

Console