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

              
                <main id="main">
<header>   
<h1 id="title">Dr.Tetsu Nakamura 中村哲 کاکا مراد</h1>
</header>  
   
<h2>"I am a medical doctor, but you will find me on a bulldozer. </h2> 
   
   <section id="tribute-info"> 
  <div class="life"><p>Life of Dr. Nakamura</p>
  </div>
  
<div id="lifebox">
  <div id="box1">     
    <p><img src="https://upload.wikimedia.org/wikipedia/en/thumb/9/9e/Flag_of_Japan.svg/125px-Flag_of_Japan.svg.png" alt="Japan" width="40" height="25"> <strong>1946</strong> - Born in Fukuoka, Japan.
    </p>
    <p><img src="https://upload.wikimedia.org/wikipedia/en/thumb/9/9e/Flag_of_Japan.svg/125px-Flag_of_Japan.svg.png" alt="Japan" width="40" height="25"> <strong>1973</strong> - Graduated from Kyushu University Medical School. 
    </p>
    <p><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/Flag_of_Afghanistan.svg/125px-Flag_of_Afghanistan.svg.png" alt="" width="40" height="25"> <img src="https://upload.wikimedia.org/wikipedia/en/thumb/9/9e/Flag_of_Japan.svg/125px-Flag_of_Japan.svg.png" alt="Afgansitan" width="40" height="25"> <strong>1978</strong> - Had a mountain climbing trip to the Hindu Kush near the Afgan-Pakistan border, while seeing local patients in Afghanistan. 
    </p>
   <span>"To places where help is desperately needed and no one else is willing to go."
    </span>
    <p><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/3/32/Flag_of_Pakistan.svg/125px-Flag_of_Pakistan.svg.png" alt="Pakistan" width="40" height="25"> <strong>1984</strong> - Moved to Peshawar, Pakistan. As a volunteer doctor for Japan Overseas Christian Medical Cooperative Service, treated leprosy patients and Afgan refugees.
    </p>
    <p><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/Flag_of_Afghanistan.svg/125px-Flag_of_Afghanistan.svg.png" alt="Afganistan" width="40" height="25"> <strong>1991</strong> - Establised 3 clinics in Nangarhar, Afganistan, and discovered malnutrition is the main cause of helath problems in the region. 
    </p>
    <span>"A hospital treats patients one by one, but one irrigation canal helps an entire village."
    </span>
    <p><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/Flag_of_Afghanistan.svg/125px-Flag_of_Afghanistan.svg.png" alt="Afgnistan" width="40" height="25"> <strong>2000</strong> - Started digging wells. Created 1600 wells in the next 6 years. 
    </p>
    <p><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/Flag_of_Afghanistan.svg/125px-Flag_of_Afghanistan.svg.png" alt="Afgnistan" width="40" height="25"> <strong>2003-2010</strong> - Completed the 7 year project to build the Marwarid Irrigation Canal.
    </p>
    <p><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/Flag_of_Afghanistan.svg/125px-Flag_of_Afghanistan.svg.png" alt="Afganistan" width="40" height="25"> <strong>2016</strong> - Built a mosque and madrasas (Islamic schools)
     </p>
    <p><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/Flag_of_Afghanistan.svg/125px-Flag_of_Afghanistan.svg.png" alt="Afganistan" width="40" height="25"> <strong>2019</strong> - Assassinated while on his way to work.</p>
   </div>
   
 <div id="box2">
   <figure id="img-div"><img id="image" src="https://images2.imgbox.com/7d/7d/MXJGY8GK_o.jpg" alt="Building a reservoir in Gamberi desert in June 2009. Foest and pasture have grown by the reservoir, May 2014">
   <figcaption id="img-caption"> The canal turned the barren land into forests and farmland.               
   </figcaption>
   </figure>  
  </div>
 </div>
</section>

<p>To learn more about Dr.Nakamura, start from <a id="tribute-link" href="https://en.wikipedia.org/wiki/Tetsu_Nakamura" target="_blank">his Wikipedia entry</a>. 
</p>
</main>
  
<footer id="footer">
This website was created for the <a href="https://www.freecodecamp.org" target="_blank">Tribute Page</a> challenge.
</footer> 
              
            
!

CSS

              
                body{
  background: rgba(	35, 100, 103, 0.4);
  font-size:16px;
  font-family: sans-serif;
}
a:hover {
  color: yellow;
}
a:visited {
  color: 00738C;
}
h1{
  font-family: 'Long Cang', cursive;
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 2px #236467;
}

#introbox{
  font-family: serif;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
}
@media (max-width: 480px) {
  #introbox {
    flex-direction: column;
    flex-wrap:nowap;
  }
}

div + p {
  background-color: rgba(35, 100, 103, 0.9);
  padding: 20px;
  color: white;
  position: absolute;
  top: 150px;
  left: 25%;
  font-size:1.2rem;
  text-shadow: 2px 2px 2px black;
}
@media (max-width: 480px) {
div + p {
   position: absolute;
   top: 300px;
   left:0%;
   }
}

/* info */
#tribute-info{
  position: relative;
  padding: 0px;
  margin: 0px 75px 0px 75px;
  justify-content: center;
}
.life {
  font-family: 'Long Cang', cursive;
  font-weight: bold;
  font-size: 2rem;
  text-align: center;
  margin: 0px;
}

/* flex boxes */
#lifebox{
  display:flex;
    align-items:stretch;
}
span {
  background-color: rgba(35, 100, 103, 0.9);
  margin:5px 5px 5px 0px;
  display: block;
  color: white;
  font-size:1.2rem;
  text-shadow: 2px 2px 2px black;
}
#box1{
}

#box2{
   width: 90%;
   display: block;
   text-align:center;
}

#image{
   max-width:100%;
   display: block;
   height:auto;
   margin: 0 auto;
}
#img-caption{
  font-weight:bold;
  text-align:left;
}

@media (max-width: 480px) {
  #lifebox {
    flex-direction: column;
    flex-wrap:nowap;
  }
}
@media (max-width: 480px) {
span {
  margin:1px 0px px 0px;
  display: block;
  color: white;
  font-size:1rem;
  text-shadow: 2px 2px 2px black;
}
}
@media (max-width: 480px) {
   #image{
   max-width:90vw;
   height:auto;
   text-align:center;
}
#img-caption{
  font-weight:bold;
   font-size: 10px;
}

   section+p{
  font-family: 'Long Cang', cursive;
  font-weight: bold;
  font-size:0.8rem;
}
}

/* learn more */
section+p{
   margin: 20px 75px 0px 75px;
  font-family: 'Long Cang', cursive;
  font-weight: bold;
  font-size:1.7rem;
}
#footer{
   margin: 20px 75px 0px 75px;
  font-size: 0.7rem;
}
              
            
!

JS

              
                
              
            
!
999px

Console