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

              
                <html>
<head>
  <title>Tribute To Dihya</title>
  <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</head>
<body id="main">
  <div class="border">
    <div id="title"><p><i>The Berber Queen <strong>Dihya</strong></i></p>
    <p class="title">The Female Face of Amazigh History</p>
  </div>

    <div id="box1">
     <div id="box2">
         <div id="img-div">
    <img id="image" src="https://raw.githubusercontent.com/AlHoucine/Responsive-Web-Design/master/Dihya.jpg" alt="Dihya">
    <p id="img-caption">In the seventh century CE, an Arab army swept across North Africa with the goal of conquest, only to be defeated by a female warrior who led the resistance against their military advances.</p>
  </div>
    </div>
        </div>
  
  <div id="tribute-info">
    <p><strong>Here's a time line of Queen Dihya :</strong></p>
    <ul class="timeline">
      <li>Her birth name was Dihya, or some variant thereof (“the beautiful gazelle” in the Tamazight language of the Imazighen) while “Kahina” is an Arabic title meaning “prophetess” or “seer” or “witch”.</li><br>
      <li>She was born into the Jrāwa Zenata tribe in the early 7th century.</li><br>
      <li>Kahina was a Berber (Imazighen) warrior-queen and seer who led her people against the Arab Invasion of North Africa in the 7th century CE.</li><br>
      <li>She was the daughter (or niece) of the Berber king Aksel (died c. 688 CE, also known as Kusaila, Caecilius, Kusiela)</li><br>
      <li>For five years she ruled a free Berber state from the Aurès Mountains to the oasis of Gadames (695–700 CE).</li><br>
      <li>Dihya succeeded Kusaila as the war leader of the Berber tribes in the 680s and opposed the encroaching Arab Islamic armies of the Umayyad Dynasty</li><br>
      <li>She either died in battle, took poison to avoid capture, or was taken and later executed. Dates given for her death vary between 698, 702, and 705 CE, although the historical evidence suggests that the date of 698 CE is too early and her final battle was in either 702 or 705 CE.</li><br>
<li>Dihya reinforces contemporary Berber political aspirations and gives us a glimpse into the complex cultural and historical heterogeneity of North Africa.</li>
    </ul>
  </div>
  
  <p class="wiki"><strong>If you have time, you should read more about this incredible human being on <a id="tribute-link" href="https://en.wikipedia.org/wiki/Dihya" target="_blank">Wikipedia.</a></strong></p>
  </div>
</body>

</html>
              
            
!

CSS

              
                #main{
  width: 100%;
  background-color: white;
}

.border{
  border-style: solid;
  border-radius: 5px;
  border-color: rgb(245, 245, 245);
  background-color: rgb(245, 245, 245);
}

#title{
  font-size: 35px;
  text-align: center;
  font-family: sans-serif, Helvetica, Arial;
 }

.title{
  font-size: 15px;
}

#image {
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  display: block;
  animation-name: transimg;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-delay: 3s;
  animation-direction: alternate;
 }
#box1{
  background-color: SteelBlue;
  animation-name: color1;
  animation-duration: 2000ms;
  animation-iteration-count: infinite;
  
}
#box2{
  background-color: YellowGreen;
  animation-name: color2;
  animation-duration: 2005ms;
  animation-iteration-count: infinite; 
}
#img-div{
  background-color: Gold;
  margin: 30px;
  padding-top: 70px;
  padding-left: 70px;
  padding-right: 70px;
  animation-name: color3;
  animation-duration: 2010ms;
  animation-iteration-count: infinite;
}

#img-caption{
  padding:20px 20px;
  font-size: 18px;
  font-family: sans-serif, Helvetica, Arial;
  text-align: center;
}

#tribute-info, .wiki{
  padding: 20px;
  text-align: left;
  font-size: 18px;
  font-family: sans-serif, Helvetica, Arial;
}

#tribute-info p{
  text-align: center;
}
.timeline{
  line-height: 25px;
  padding-right: 250px;
  padding-left: 250px;
}

.wiki{
  text-align: center;  
}

#box1, #box2{
  display: flex;
  align-content: center;
  padding-top: 60px;
  padding-left: 50px;
  padding-right: 50px;
  padding-bottom: 50px;
  margin-bottom: 40px;

}
@keyframes color1{
  0%{
    background-color: SkyBlue;
    background-color: rgba(70, 130, 180, 0.2);
    
  }
  100%{
    background-color: rgba(70, 130, 180, 1);
  }
}

@keyframes color2{
  0%{
    background-color: PaleGreen;
    background-color: rgba(154, 205, 50, 0.2);
  }
  100%{
    background-color: rgba(154, 205, 50, 1);
  }
}

@keyframes color3{
  0%{
    background-color: LightYellow;
    background-color: rgba(255, 215, 0, 0.2);
  }
  100%{
    background-color: rgba(255, 215, 0, 1);
  }
}

@keyframes transimg{
  0% {
    transform: scale(1.1);
}
  100% {
    transform: scale(0.8);
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console