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

              
                <div id="main" class="main1">
  <div>
    <!-- for freecodecamp reqt.-->
    <div id="img-div">
      <img id="image" src="" alt="">
      <p id=img-caption>Background: A portrait of Antonie van Leeuwenhoek</p>
    </div>
<!-- for freecodecamp reqt.-->
    <header class="header1">
      <h1 class="name1">Antonie</h1>
      <h1 class="name2">van</h1>
      <h1 class="name2">Leeuwenhoek</h1>
      <p class="namedes1">The Father of Microbiology</p>
      <p class="namedes2">(1632-1723)</p>
    </header>
    <div id="title" class="nameinfo">
      <p class="description"><q>The first person to observe<u><br> life invisible to the naked eye</u></q></p>
    </div>
  </div>
<!-- filler -->
  <div class="filler">
  </div>
|<!-- filler-->

  <section id="tribute-info" class="container1" >
    <div class="box1top">
      <h2 class="box1toptext">EARLY LIFE</h2>
    </div>
    <div class="box1left">
      <p class="box1lefttext"> At a young age, <u>Anton van Leeuwenhoek</u> lost his biological father. His mother later married painter Jacob Jansz Molijn. once his father figure died in 1648, <u>Anton van Leeuwenhoek</u> was sent to <u>Amsterdam</u> to become an apprentice as a <u>linen draper</u>. He returned to his hometown <u>Delft</u> once he was twenty. Then, he established himself as a <u>draper and haberdasher.</u></p>
      <p class="box1lefttext"> In 1660, <u>Anton van Leeuwenhoek</u> became a <u>chamberlain</u> to the sheriffs of Delft. His financial status therefore was secure, and it had been henceforth that he began to devote a lot of his time to his hobby of <u>grinding lenses</u> and using them to <u>study tiny objects.</u></p>
    </div>
    <div class="box1right">
      <img class="birthplace" src="https://upload.wikimedia.org/wikipedia/commons/thumb/8/84/Antony_van_Leeuwenhoek_and_his_%22Little_animals%22%3B_being_some_account_of_the_father_of_protozoology_and_bacteriology_and_his_multifarious_discoveries_in_these_disciplines%3B_%281932%29_%2819122164704%29.jpg/220px-thumbnail.jpg" alt="">
      <p class="birthplacetext">"Antonie's" Birthplace</p>
    </div>
</section>

<br>

  <section class="container2" >
    <div class="box2top">
      <h2 class="box2toptext">A SPECIAL MICROSCOPE</h2>
    </div>
    <div class="box2left">
      <p class="box2lefttext"><u>Leeuwenhoek</u> made an innovative microscope by hand consisting of a <u>single high-quality lens of very short focal length.</u> </p><p class="box2lefttext">Compared to the microscope available at that time (microscopes capable of <u>5x to 9x magnification</u>), the microscope made by Leeuwenhoek had a <u>magnifying power ranging from 50x to 300x.</u> This was the first step for his discoveries.</p>
      <p class="box2lefttext">Leeuwenhoek’s methods of microscopy, which he kept secret, remain something of a <u>mystery until his death.</u> 
    </div>
    <div class="box2right">
      <img class= "microscope" src="https://www.researchgate.net/profile/Ahmed_Adeel/publication/317086271/figure/fig3/AS:507654741413889@1498045730583/Leeuwenhoeks-microscope.png" alt="Design and parts of microscope made by Antonie">
    </div>
  </section>
<br><br>
<section class="container3" >
    <div class="box3top">
      <h2 class="box3toptext">THE DISCOVERY OF MICROBIOTES</h2>
    </div>
    <div class="box3left">
      <p class="box3lefttext">In 1674, by using his own microscope, Anton van Leeuwenhoek likely observed protozoa for the first time and several years later bacteria. He described them as <q>a very little animalcules</q>. He was able to isolate them from different sources, such as rainwater, pond and well water, He later isolated some more on the human mouth and intestine. He also calculated their sizes for documentation.</p>
    </div>
    <div class="box3leftbottom">
      <img class="anton" src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ56Q6YQH7g97IPTmA0io23nFsvCphgKTeRHmlOFPUP1ipsYYY&s" alt="">
      <p class="antontext"><q>Antonie</q> using his own microscope</p>
    </div>
    <div class="box3right">
      <img class="microbes" src="https://c8.alamy.com/comp/B2JA9P/leeuwenhoek-antoni-van-24101632-2781723-dutch-scientist-his-illustration-B2JA9P.jpg" alt="">
      <p class="microbestext">Microbes illustrated by <q>Antonie</q></p>
    </div>
  </section>
  <footer>
    <div class="quotation">
      <p class="quotationtext"><i>As well as being the father of microbiology, van Leeuwenhoek laid the foundations of plant anatomy and became an expert on animal reproduction. He discovered blood cells and microscopic nematodes, and studied the structure of wood and crystals. He also made over 500 microscopes to view specific objects.</i></p>
      <p class="quotationtext2"><i>--BBC</i></p>
    </div>
    <div>
      <p class="moreinfo">Learn more about Antonie van Leeuwenhoek at his <a href="https://www.britannica.com/biography/Antonie-van-Leeuwenhoek" id="tribute-link" target="_blank">Britannica biography</a></p>
    </div>
  </footer>
</div>


              
            
!

CSS

              
                .main1 {
  background-image: url(https://upload.wikimedia.org/wikipedia/commons/1/1f/Anthonie_van_Leeuwenhoek_%281632-1723%29._Natuurkundige_te_Delft_Rijksmuseum_SK-A-957.jpeg);
  background-color: black;
  background-attachment: fixed;
  background-position: 0 30%;
  background-repeat: no-repeat;
  background-size: cover;
}

/*for freecodecamp reqt.*/
#image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0, auto;
  max-width: 100000px;
}

#img-caption{
  text-align:center;
  font-size: 0.1px
}
/*for freecodecamp reqt.*/

.header1 {
    position: absolute;
    top: 10% ;
}

.name1{
  font-size: 6vw;
  line-height: 0vw;
  color: #FF7619;
}

.name2 {
  font-size: 6vw;
  line-height: 1vw;
  color: #FF7619;
}


.namedes1 {
  font-size: 3vw;
  line-height: 1.5vw;
  color: #927362;
}
.namedes2 {
  font-size: 3vw;
  margin-top: -2vw;
  color: #927362;
}

.nameinfo {
  position: absolute;
  font-size: 2.5vw;
  line-height: 2.6vw;
  text-align: center;
  top: 25%;
  left: 65%;
  color: RGB(250, 250, 200);
}

.filler{
  position: relative;
  width: 100%;
  height: 50vw;
}

/* EARLY LIFE */
.container1 {
  position: relative;
  display: grid;
  justify-content: center;
  align-items: start;
  grid-template-columns: 45% 45%;
  grid-gap: 2vw;
  grid-template-areas:
    "header1 header1"
    "description1 picture1"
}

.box1top {
  background: rgba(255, 255, 255, 0.8);
  grid-area: header1;
  text-align: center;
  border-radius: 10px;
}

.box1toptext {
  vertical-align: center;
  justify-self: start;
  font-size: 6vw;
  font-family: Playfair display;
  margin-top: 0vh;
  margin-bottom: 1vh;
}

.box1left {
  background: rgba(190, 190, 190, 0.5);
  grid-area: description1;
  text-align: justify;
  border-radius: 10px;
}

.box1lefttext {
  margin-left: 1vw;
  margin-right: 1vw;
  font-size: 2vw;
  text-indent: 10%;
  font-family: oswald, san-serif;
}
  
.box1right {
  text-align: center;
  grid-area: picture1;
  object-fit: cover;
  overflow: hidden;
  width: 100%;
  height: 47.5vw;
}

.birthplace {
  position: relative;
  width: 100%;
  height: auto;
  transform: translateY(-10%)
}

.birthplacetext {
  position: relative;
  bottom: 17vw;
  background-color: white;
  font-size: 1.6vw;
  font-family: Osward, sans-serif;
}

/* MICROSCOPE */
.container2 {
  position: relative;
  display: grid;
  justify-content: center;
  grid-template-columns: 45% 45%;
  grid-gap: 2vw;
  grid-template-areas:
    "header2 header2"
    "description2 picture2"
}

.box2top {
  background: rgba(255, 255, 255, 0.8);;
  grid-area: header2;
  text-align: center;
  border-radius: 10px;
}

.box2toptext {
  vertical-align: center;
  justify-self: start;
  font-size: 6vw;
  font-family: Playfair display;
  margin-top: 0vh;
  margin-bottom: 1vh;
}

.box2left {
  background: rgba(190, 190, 190, 0.5);
  grid-area: description2;
  text-align: justify;
  border-radius: 10px;
}

.box2lefttext {
  margin-left: 1vw;
  margin-right: 1vw;
  font-size: 2vw;
  text-indent: 10%;
  font-family: oswald, san-serif;
}
  
.box2right {
  text-align: center;
  grid-area: picture2;
}

.microscope {
  width: 100%;
  height: auto;
}

/* DISCOVERY */
.container3 {
  position: relative;
  display: grid;
  justify-content: center;
  align-items: start;
  grid-template-columns: 45% 45%;
  grid-gap: 1vw;
  grid-template-areas:
    "header3 header3"
    "description3 picture3right"
    "picture3left picture3right"
}

.box3top {
  background: rgba(255, 255, 255, 0.8);
  grid-area: header3;
  text-align: center;
  border-radius: 10px;
}

.box3toptext {
  vertical-align: center;
  justify-self: start;
  font-size: 5vw;
  font-family: Playfair display;
  margin-top: 0vh;
  margin-bottom: 2vh;
  
}

.box3left {
  background: rgba(190, 190, 190, 0.5);
  grid-area: description3;
  text-align: justify;
  border-radius: 10px;
}

.box3lefttext {
  margin-left: 1vw;
  margin-right: 1vw;
  font-size: 2vw;
  text-indent: 10%;
  font-family: oswald, san-serif;
}
  
.box3leftbottom {
  grid-area: picture3left;
  width: 100%;
  height: 23vw;
  overflow: hidden;
}

.anton {
  width: 100%;
  height: auto;
}

.antontext {
  position: relative;
  bottom: 24.1vw;
  background-color: white;
  text-align: center;
  font-size: 1.6vw;
  font-family: Osward, sans-serif;
}

.box3right {
  text-align: start;
  grid-area: picture3right;
  width: 100%;
  height: 42vw;
  overflow: hidden;
}

.microbes{
  width: 100%;
  height: auto;
}

.microbestext {
  position: relative;
  bottom: 7.1vw;
  background-color: white;
  text-align: center;
  font-size: 1.6vw;
  font-family: Osward, sans-serif;
}

body::after {
  display: block;
  height: 4vw;
}

.quotation{
  display: block;
  background-color: rgba(190, 190, 190, 0.5);
  height: 21vw;
 
}
.quotationtext {
  text-indent: 10%;
  text-align: justify;
  font-size: 2.4vw;
  margin: 2vw 7vw 2vw 7vw;
  display: inline-block;
}

.quotationtext2 {
  text-align: justify;
  font-size: 2.4vw;
  margin: 2vw 7vw 2vw 7vw;
}

.moreinfo {
  background-color: white;
  width: 100%;
  height: 4vw;
  right: 0vw;
  text-align: center;
  position: absolute;
  font-size: 3vw;
}

a{
  color:blue;
}

a:hover {
  color:purple;
}

@media (max-width: 500px){
  .main1   {
background-image: url(https://upload.wikimedia.org/wikipedia/commons/1/1f/Anthonie_van_Leeuwenhoek_%281632-1723%29._Natuurkundige_te_Delft_Rijksmuseum_SK-A-957.jpeg);
  background-attachment: fixed;
  background-position:center center;
  background-size: cover;
  background-repeat: no-repeat;
  }
}




              
            
!

JS

              
                
              
            
!
999px

Console