Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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'>
  <nav id='nav'>
    <ul>
      <li>
        <a href='#life-legacy'>Life & Legacy</a>
      </li>
      <li>
        <a href='#quotes'>Quotes</a>
      </li>
    </ul>
  </nav>
  <section id='section1'>
    <div id='title'>
      <h1>Helen Keller, a tribute
      </h1>
      <p>An American author, disability rights advocate, political activist and lecturer</p>
    </div>
    <div id='img-div'>
      <img id='image' src='https://i.pinimg.com/600x315/46/58/be/4658beb0d45fc4ceb0ea82e2198d1ed8.jpg' alt='Helen Keller'></img>
      <p id="img-caption"><b>Helen Keller 1880–1968</b></p>
    </div>
  </section>

  <div id="tribute-info">
    <div id="life-legacy">
      <h2>Life & Legacy</h2>
      <p id="life">
        Helen Adams Keller (June 27, 1880 – June 1, 1968) was an American author, disability rights advocate, political activist and lecturer. Born in West Tuscumbia, Alabama, she lost her sight and hearing after a bout of illness at the age of nineteen months. She then communicated primarily using home signs until the age of seven when she met her first teacher and life-long companion Anne Sullivan, who taught her language, including reading and writing; Sullivan's first lessons involved spelling words on Keller's hand to show her the names of objects around her. She also learned how to speak and to understand other people's speech using the Tadoma method. After an education at both specialist and mainstream schools, she attended Radcliffe College of Harvard University and became the first deafblind person to earn a Bachelor of Arts degree. She worked for the American Foundation for the Blind (AFB) from 1924 until 1968, during which time she toured the United States and traveled to 39 countries around the globe advocating for those with vision loss.
      </p>
      <div id="img-2">
        <img src="https://i.etsystatic.com/12575844/r/il/57600a/1167845202/il_570xN.1167845202_na6k.jpg" alt="
Etsy
Helen Keller and Anne Sullivan Photograph- Teacher Gift">
        <p>Helen Keller and Anne Sullivan Photograph- Teacher Gift</p>
      </div>
    </div>
    <div id='quotes'>
      <h2>Some of Helen's Quotes</h2>
      <div class="quote-lines">
        <p>Life is either a daring adventure, or nothing.</p>
        <p>The best and most beautiful things in the world cannot be seen or even touched - they must be felt with the heart.</p>
        <p>Alone we can do so little; together we can do so much.
        <p>
        <p>Keep your face to the sunshine and you cannot see the shadows.</p>
        <p>Although the world is full of suffering, it is also full of the overcoming of it.</p>
        <p>Optimism is the faith that leads to achievement</p>
        <p>Nothing can be done without hope and confidence.</p>
        <p>When one door of happiness closes, another opens; but often we look so long at the closed door that we do not see the one which has been opened for us.</p>
        <p>The only thing worse than being blind is having sight but no vision.</p>
        <p>Walking with a friend in the dark is better than walking alone in the light.</p>
        <p>What we have once enjoyed we can never lose. All that we love deeply becomes a part of us.</p>

      </div>
    </div>
    <p id="tribute-link-p">To learn more about this incredible woman,click <a target="_blank" href='https://en.wikipedia.org/wiki/Helen_Keller#Early_childhood_and_illness' id="tribute-link"><i>here</i></a> </p>
  </div>

</main>
<footer>
  <p>Developer: <i><a href='' target='_blank'>Babi</a></i></p>
  <ul>
    <li><a href='https://github.com/Babi-B/Tribute-Page' target='_blank'><i class="fab fa-github"></i></a>
    <li><a href='https://dev.to/babib' target='_blank'><i class="fab fa-dev"></i></a></li>
  </ul>
</footer>
              
            
!

CSS

              
                /* ============
DEFAULTS
================*/
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  background-color: #e7e6e1;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  color: #fff;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

p {
  font-family: "Amiri", serif;
}
h1,
h2,
a {
  font-family: "Playfair Display", serif;
}
/* ============
NAV
================*/
#nav {
  background-color: black;
  height: 5rem;
}
nav ul {
  display: flex;
  justify-content: space-around;
  height: 100%;
}

#nav ul li {
  height: 100%;
  font-size: 26px;
  padding-top: 20px;
}
#nav ul li:hover {
  background-color: #e7e6e1;
  color: #000;
  cursor: pointer;
}
/*  SECTION 1 */
#section1 {
  text-align: center;
}

#title h1 {
  font-size: 30px;
}
#title p {
  font-size: 22px;
  font-style: italic;
}
#image {
  max-width: 400px;
  height: 500px;
  box-shadow: 10px 5px 9px 5px #cccccc;
}
#image:hover {
  padding: 2rem;
}
#img-2 {
  text-align: center;
}
#img-2 img {
  height: 450px;
}
#img-2 p {
  font-size: 12px;
}
/*  #tribute-info */
#tribute-info {
  padding: 10px;
}
#tribute-info p,
.quote-lines {
  font-size: 22px;
  padding: 0 2px 0 2rem;
}
.quote-lines {
  font-style: italic;
}
/*  FOOTER */
##tribute-link-p {
  font-size: 15px;
}
footer {
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: space-around;
}
footer ul {
  display: flex;
  justify-content: space-around;
}
footer ul li {
  padding: 1rem 3rem;
  font-size: 2rem;
}

footer a:hover {
  background-color: #e7e6e1;
  color: #000;
  padding: 5px;
}
footer p {
  font-size: 20px;
  padding: 10px;
  margin: 10px;
}
footer li {
  display: flex;
  flex-direction: column;
}

@media (max-width: 700px) {
  #image {
    height: 400px;
    width: 300px;
  }
  #title {
    margin-top: 5px;
  }
  #img-div {
    align-items: center;
    margin: auto;
  }
  
  ul li h2 {
    font-size: 16px;
  }
}
@media (max-width: 422px) {
  #nav a{
    font-size:18px;
    font-weight:bold;
  }
  #img-2 img{
    height:300px;
    width:250px;
  }
 
}

              
            
!

JS

              
                
              
            
!
999px

Console