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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<!DOCTYPE html>
<html>

<head>
    <title>FCC: Tribute Page</title>
    <link rel="stylesheet" type="text/css" href="css/style.css">
</head>



<!-- Headings -->

<main id="main">
    <div class="title">
        <h1 id="title">Temple Grandin Tribute</h1>
        <p>American Professor, Author, Livestock Industry Consultant, Autism and Animal Behavior Advocate</p>
    </div>

    <!-- Image -->
    <figure id="img-div">
        <img id="image" src="http://med.stanford.edu/content/dam/sm-news/images/2014/11/grandin-temple.jpg" alt="Temple Grandin" width="100%">

        <!-- Fig Caption -->
        <figcaption id="img-caption">
            <h4>Dr. Grandin with the company of cows.</h4>
        </figcaption>
    </figure>
    <br>
    <br>
    <!-- Section -->
    <section id="tribute-info">
        <h2 id="headline">Timeline of Temple Grandin:</h2>

        <!-- Timeline -->
        <div class="timeline-container">

            <div class="left text-wrapper">
                <div class=text>
                    <h3>August 29, 1947</h3>
                    <p>Born in Boston, Massachusetts into a wealthy family.</p>
                </div>
            </div>

            <div class="right text-wrapper">
                <div class=text>
                    <h3>1949</h3>
                    <p>At 2 years old, she was diagnosed with Autism.</p>
                </div>
            </div>

            <div class="left text-wrapper">
                <div class=text>
                    <h3>1951</h3>
                    <p>At 4 years old, she started to speak.</p>
                </div>
            </div>

            <div class="right text-wrapper">
                <div class=text>
                    <h3>1965</h3>
                    <p>Invented the "hug machine" for stress relief.</p>
                </div>
            </div>

            <div class="left text-wrapper">
                <div class=text>
                    <h3>1966</h3>
                    <p>Graduated from Hampshire Country School.</p>
                </div>
            </div>

            <div class="right text-wrapper">
                <div class=text>
                    <h3>1970</h3>
                    <p>Graduated from Franklin Pierce College with a bachelor's degree in psychology.</p>
                </div>
            </div>

            <div class="left text-wrapper">
                <div class=text>
                    <h3>1975</h3>
                    <p>Graduated from Arizona State University with a master's degree in animal science.</p>
                </div>
            </div>

            <div class="right text-wrapper">
                <div class=text>
                    <h3>1986</h3>
                    <p>Published her autobiography 'Emergence: Labeled Autistic. <br>Invented "Stairway to Heaven"
                        for
                        food
                        animals who take their last steps before being slaughtered.</p>
                </div>
            </div>

            <div class="left text-wrapper">
                <div class=text>
                    <h3>1989</h3>
                    <p>Graduated from University of Illinois with a doctoral degree in animal science and started
                        consulting
                        for companies that operated slaughter plants.</p>
                </div>
            </div>

            <div class="right text-wrapper">
                <div class=text>
                    <h3>2004</h3>
                    <p>Received a 'Proggy Award' in the 'Visionary' category from People for the Treatment of
                        Animals
                        (PETA).
                    </p>
                </div>
            </div>

            <div class="left text-wrapper">
                <div class=text>
                    <h3>2010</h3>
                    <p>Was included in the list of '100 most influential people in the world' by the Time
                        Magazine.<br>Her
                        life story was adapted into a semi-biographical HBO film 'Temple Grandin', featuring Claire
                        Danes.
                    </p>
                </div>
            </div>

            <div class="right text-wrapper">
                <div class=text>
                    <h3>2017</h3>
                    <p>Was inducted into the National Women's Hall of Fame.</p>
                </div>
            </div>

            <div class="left text-wrapper">
                <div class=text>
                    <h3>Present Day</h3>
                    <p>Works at Colorado State University, Fort Collins as a professor of animal science.</p>
                </div>
            </div>
        </div>

        <!-- Quote -->
        <div id="blockquote">
            <blockquote cite="https://ed.ted.com/lessons/the-world-needs-all-kinds-of-minds-temple-grandin">
                <p>
                    "The world needs all kinds of minds."
                </p>
                <cite>-- Temple Grandin</cite>
            </blockquote>
        </div>

    </section>

    <!-- Tribute Link -->
  <div class="tribute">
  <p>Want to learn more about this human being?<br>Check out: </p>
    <a 
  id="tribute-link"      href="http://www.templegrandin.com" target="_blank">www.templegrandin.com
    </a>
  </div>  
       
   

    <!-- Footer -->
    <footer id="main-footer">
        <h6><a class="link" href="http://freecodecamp.com" target="_blank">FreeCodeCamp</a> tribute page coded by
            Hannah
            Lamb
        </h6>
    </footer>

</main>

</html>

              
            
!

CSS

              
                /* Body */
#main {
  width: 50%;
  margin: 0 auto;
  background-color: #ff9500;
  padding: 0 20px 20px 20px;
  border: 5px solid black;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: normal;
  align-content: center;
}

/* Image */
#img-div {
  display: block;
  margin: 0 auto;
  text-align: center;
}

#image {
  max-width:100%;
  display: block;
  height: auto;
}



/* Fig Caption, Title, Blockquote*/
#img-caption,
.title,
#blockquote {
  margin: 0;
  padding: 20px 0;
  color: #00539f;
  text-align: center;
}

#headline {
  padding: 15px 15px 15px 17px;
  background-color: #f5f5f5;
  color: #212121;
  border-radius: 4px;
  text-align: center;
}

/* Timeline */
.timeline-container {
  position: relative;
  width: 600px;
  margin: 150px auto 0 auto;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: #f5f5f5;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.text-wrapper {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
  margin: 50px 0;
}

.text-wrapper::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: #00539f;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.right::after {
  left: -10px;
}

.text {
  padding: 15px 15px 15px 17px;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.text h3 {
  text-transform: uppercase;
  font-size: 14px;
  color: #212121;
  letter-spacing: 1px;
}

.text p {
  color: #616161;
  font-weight: 300;
  font-size: 18px;
  margin-top: 2px;
}

p{
  text:align-center;
}

/* Tribute Link */
.tribute{
  margin: 0;
  padding: 20px 0;
  color: #00539f;
  text-align: center;
}

/* Footer */
#main-footer {
  margin: 0;
  padding: 20px 0;
  color: #00539f;
  text-align: center;
}

/* Links */
.link:active {
  color: green;
}

.link:visited {
  color: blue;
}

.link:hover {
  color: red;
}

              
            
!

JS

              
                
              
            
!
999px

Console