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 lang="en">
  <body>
  <main id="main">
    <h1 id="title"><u>Samir Yousef Ghanem</u></h1>
    <p>Egyptian comedian legend that make millions of people laugh</p>
    <div id="img-div">
      <img id="image" src="https://en.vogue.me/wp-content/uploads/2019/11/samir-ghanem-fb.jpg" alt="Samir Ghanem Photo">
      <figcaption id="img-caption">This photo is from the famous series "Fatota"
      </figcaption>
    </div>
  </main>

  <div id="tribute-info">
    <h2>Life time of the legend Samir Ghanem</h2>
    <p><u>Personal Life</u></p>
    <ul>
      <li>Samir Yousef Ghanem was an Egyptian comedian, singer, and entertainer.</li>
      <li>Born on January 15<sup>th</sup> 1937, Asyut, Egypt.</li>
      <li>He earned a bachelor's degree in Agriculture from Alexandria University.</li>
      <li>He was married to actress Dalal Abdel Aziz, and the father of actresses Donia and Amy.</li>
      <li>On 20 May 2021, Ghanem was recovering at hospital in serious condition after contracting COVID-19.</li>
      <li>He died from complications of kidney functions and associated mucormycosis related to the infection in El Safa Hospital, Mohandiseen, Giza on 20 May 2021, at the age of 84.</li>
    </ul>
    <p><u>Career</u></p>
    <ul>
      <li>He was a member of the stand-up comedy <a href="https://en.wikipedia.org/wiki/Tholathy_Adwa%27a_El_Masrah" target="_blank">trio Tholathy Adwa'a El Masrah</a> alongside George Sidhom and El Deif Ahmed.</li>
      <li>After El Deif Ahmed's death in 1970 and George Sidhom retired due to a brain stroke, Samir Ghanem continued producing plays the most famous are:</li>
      <ul class="plays">
        <li>Music in East District.</li>
        <li>l-Mutazawwigun (Married)</li>
        <li>Goha Rules the City</li>
        <li>Faris wa Bani Khayban (The Knight and Disaster Clan)</li>
        <li>Akhuya Hayes wana Layes (Happy Is My Brother, Lost Am I)</li>
        <li>Ana wal-Nizam wa Hawak (Me, the Government and Your Love)</li>
        <li>Bahloul fi Istanbul (Bahloul in Istanbul)</li>
        <li>Ana wa Mirati wa Monica (Me, My Wife and Monica)</li>
      </ul>
      <li>Ghanem participated in more than 300 acting roles including films, TV series and theater plays, the last of which was in the series Badal Al Hadduta Talata with his daughter Donia Samir Ghanem.</li>
    </ul>
    <h3><a id="tribute-link" href="https://en.wikipedia.org/wiki/Samir_Ghanem" target="_blank">If you want to know more about Samir Ghanem</a></h3>
  </div>
  </body>
</html>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@300&display=swap");
body {
  background-color: black;
  font-family: tajawal, sans-serif;
}
#main {
  background-color: white;
  margin-top: 60px;
  margin-right: 60px;
  margin-left: 60px;
  margin-bottom: 60px;
  border-radius: 3%;
  border: 1.5px solid red;
}
@media (max-width: 500px) {
  #main {
    margin: 1rem 1rem 1rem 1rem;
  }
}
#title {
  text-align: center;
  color: #610101;
  font-size: 3rem;
  padding-top: 2rem;
  margin-top: 1rem;
  margin-bottom: -1.5rem;
}
@media (max-width: 500px) {
  #title {
    padding-top: 20px;
    margin-top: 20px;
    font-size: 1.7rem;
  }
}
p {
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 3rem;
  font-size: 2rem;
  color: red;
}
@media (max-width: 500px) {
  p {
    font-size: 1.2rem;
    max-width: 100%;
    margin-right: 10px;
    margin-left: 10px;
    margin-bottom: 25px;
  }
}
#img-div {
  justify-items: center;
}
#image {
  position: relative;
  display: block;
  border-radius: 3%;
  max-width: 100%;
  height: auto;
  scale: 0.9;
  margin-top: -50px;
  margin-bottom: 30px;
  border: 4px solid gray;
}
@media (max-width: 500px) {
  #image {
    transform: scale(0.85);
  }
}
#img-caption {
  position: relative;
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: red;
}
@media (max-width: 500px) {
  #img-caption {
    font-size: 1.2rem;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: -15px;
    margin-bottom: 10px;
  }
}
#tribute-info {
  position: relative;
  margin-left: 20px;
  margin-right: 20px;
  color: white;
  line-height: 3rem;
}
h2 {
  font-family: tajawal;
  text-align: center;
  font-size: 2.5rem;
  margin-top: 50px;
}
@media (max-width: 500px) {
  h2 {
    text-align: center;
    max-width: 100%;
    margin-top: 50px;
    line-height: 1.8rem;
    font-size: 1.7rem;
  }
}
ul {
  margin-left: 3rem;
  margin-right: 3rem;
}
li {
  text-align: left;
  font-size: 1.5rem;
}
@media (max-width: 500px) {
  ul {
    margin-left: 0.1rem;
  }
  ul li {
    text-align: left;
    max-width: 100%;
    margin-left: 0.1rem;
    margin-right: 0.1rem;
    line-height: 1.7rem;
    font-size: 1.2rem;
  }
}

#tribute-info p {
  text-align: left;
  margin-left: 2rem;
  margin-bottom: -35px;
  margin-top: -20px;
  font-size: 1.9rem;
}
@media (max-width: 500px) {
  #tribute-info p {
    margin-left: 0.2rem;
    line-height: 1.7rem;
    font-size: 1.5rem;
  }
}
@media (max-width: 500px) {
  .plays {
    line-height: 1.7rem;
    font-size: 1rem;
    width: 100%;
    margin-left: -1.2rem;
  }
}
.plays {
  line-height: 1.7rem;
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}
h3 {
  text-align: center;
  font-family: tajawal;
  font-size: 2rem;
}
@media (max-width: 500px) {
  h3 {
    line-height: 1.3rem;
    font-size: 1.2rem;
  }
}
a {
  color: #cababa;
}
@keyframes color {
  100% {
    color: orange;
  }
}
a:hover {
  animation-name: color;
  animation-duration: 500ms;
  animation-fill-mode: forwards;
}

              
            
!

JS

              
                 

              
            
!
999px

Console