Help for the challenge

i want to display img element to have a display of block

also i want to #image should have a max-width of 100%

   **Your code so far**
/* file: index.html */
<main id="main">
     <h1 id="title">paul kagame</h1>
     <p>The president of republic of Rwanda</p>
     <figure id="img-div">
         src="" width="100%"
         alt="H.E president poul kagame the president of republic of rwanda"
       <figcaption id="img-caption">
         H.E president poul kagame the president of republic of rwanda
     <section id="tribute-info">
       <h3 id="headline">Here's a time line of paul kagame's life</h3>
         <li><strong>1957</strong> -born October 1957, Rwanda</li>
           <strong>1990</strong> - Kagame was studying at the U.S. Army Command and General Staff College in Fort Leavenworth, Kansas, that invasion—mostly involving Tutsi veterans of the Ugandan army—was undertaken and repulsed
           <strong>1994</strong> -Kagame led a force of 10,000–14,000 FPR soldiers against the Hutu forces perpetrating the genocide
           <strong>2003</strong> - elected to be the president of rwanda
           "paul kagame life and achievement are testimony to the far-reaching
           contribution that one man's towering intellect, persistence and
           intelligent vision can make to human peace and progress."
         <cite>-- rwandan prime minister</cite>
         If you have time, you should read more about this incredible human
         being on his
           >biography entry</a
/* file: styles.css */

   **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Build a Tribute Page

Link to the challenge:

1 Like

You need to use CSS to do this. You have several options. You could add it as a style attribute on the image. You could embed the CSS in <style> tags. You could add the CSS to the styles.css editor.

Likewise for the max-width.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.