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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <meta charset="utf-8" />
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Cabin" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Dancing+Script" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Crimson+Text" rel="stylesheet">
    <title id="title">Tribute to Arnold</title>
</head>
<body id=main>
    <h1 class="head">A TRIBUTE TO</h1>
    <div class="wrapper">
        <div class="mainbox">
            <h2 class="head2">ARNOLD SCHWARZENEGGER</h2>
            <div class="nested1">
                <img-div id="img">
                    <img class="pic" src="https://mk0barbendl86qlfmi9n.kinstacdn.com/wp-content/uploads/2016/12/Screenshot-2016-12-23-at-12.20.24-PM.png" alt="pic of arnold"/>                            <p id="img-caption"><i> “Everybody pities the weak. Jealousy you have to earn.” – Arnold Schwarzenegger</i></p>
                </img-div>
            </div>
            <div>
                <h2 class="head3">BIOGRAPHY</h2>
            </div>
                <div class="nested2">
                    <p id="tribute-info">Arnold Schwarzenegger was born on July 30, 1947,                       near Graz, Austria. He is known for being one of the best bodybuilders                     in the world.
                    He has done it all, from being the governor of California, to being a                       hollywood star. Arnold has won the Mr. Olympia contest a total of seven                     times, making him one of the most dominant and youngest bodybuilders of                     all time. Eventually he decided that he wanted to pursue acting                             instead. He was soon chosen to play Hercules in 1970's "Hercules in New                     York". Later during 1977 he made an appearance in "Pumping Iron" which                     is considered one of the best bodybuilding films of all time. </p>
                </div>
               
                <h2 class="head3">TIMELINE</h2>
                
                <div class="nested2">
                    <div class="timeline">
                        <dt>1947 -</dt>
                        <dd>Arnold is born in Austria.</dd>
                        <dt>1960 -</dt>
                        <dd>Starts lifting weights and later becomes addicted to working                           out.</dd>
                        <dt>1964 -</dt>
                        <dd>Becomes a bodybuilding state champion.</dd>
                        <dt>1965 -</dt>
                        <dd>Wins Austrian Jr. Weightlifting Championship.</dd>
                        <dt>1966 -</dt>
                        <dd>Wins "Best Built Man in Europe","Mr Europe", and the                                   Powerlifting Championship.</dd>
                        <dt>1966 -</dt>
                        <dd>Loses the Mr. Universe competition to Chet Yorton.</dd>
                        <dt>1967 -</dt>
                        <dd>Wins his first Mr. Universe title.</dd>
                        <dt>1969 -</dt>
                        <dd>Loses his first Mr. Olympia contest to Sergio Olivia.</dd>
                        <dt>1970 -</dt>
                        <dd>Wins the Mr. World U.S competition.</dd>
                        <dt>1970 -</dt>
                        <dd>Wins the Mr. Olympia contest taking down Sergio Olivia.</dd>
                        <dt>1977 -</dt>
                      <dd>Stars in "Pumping Iron".</dd>
                      <p> Learn more about Arnold at <a href=http://www.schwarzenegger.com/bio> http://www.schwarzenegger.com/bio </a> </p>
                    </div>


                </div>
            </div> 
          </div>
        <div>
          
  </div>

</body>
</html>
              
            
!

CSS

              
                #main {
            margin-left: auto;
            margin-right: auto;
            min-width: 960px;
            max-width: 1800px;
            background: linear-gradient(180deg, #A9A9A9, #708090);
            background-attachment: fixed;
        }

        .head {
            text-align: center;
            font-size: 70px;
            padding: 0px 0px 10px 0px;
            font-family: Lobster
        }

        .head2 {
            text-align: center;
            font-size: 50px;
            margin: 20px 0px 20px 0px;
            font-family:'Dancing Script';
            font-weight: 600;
        }

        .head3 {
            position: center;
            text-align: center;
            font-size: 50px;
            margin: 100px 0px 0px 0px;
            padding: 10px 0px 10px 0px; 
            font-family:'Dancing Script';
            font-weight: 900;
        }

        .wrapper {
            position: relative;
            min-width: 960px;
            display: grid;
            grid-template-columns: 1fr 6fr               1fr;
            width: 100%;
            height: 2500px;
        }

        .mainbox {
            position: relative;
            grid-column: 2/3;
            background-color: #D3D3D3;
            box-shadow: 0px 5px 30px 20px
        }

        .nested1 {
            display: grid;
            background-color: #D3D3D3;
            height: 400px;
            grid-template-columns: 1fr 2fr               1fr;
            grid-column: 2/3;
            grid-column-gap: 10px;
        }

        #img {
            grid-column: 2/3;
            background-color: black;
            height: 400px;
        }

        #img-caption {
         text-align: center;
         margin: 10px 10px 10px 10px;
         padding: 10px 10px 10px 10px;
         font-size: 20px;
         font-family: 'Crimson Text';
         font-weight: 600;
        }

        .pic {
            min-width: 400px;
            height: 400px;
            width: 100%;
            box-shadow: 0px 5px 20px 10px;
            border-style: solid;
            border-width: 5px;
            border-color: white;
        }

        .nested2 {
            display: grid;
            background-color: #D3D3D3;
            height: 510px;
            grid-template-columns: 1fr 4fr               1fr;
        }

        #tribute-info {
            position: relative;
            box-shadow: 0px 5px 20px 10px;
            min-width: 900px;
            width: 900px;
            max-width: 900px;
            max-height: 500px;
            grid-column: 2/3;
            background-color: #B9BAB9;
            border-color: white;
            border-style: solid;
            border-width: 4px;
            font-size: 26px;
            text-align: center;
            line-height: 1.8em;
            overflow: auto;
            padding-top: 30px;
            font-family: Cabin;
        }



        .timeline {
            position: relative;
            box-shadow: 0px 5px 20px 10px;
            grid-column: 2/3;
            background-color: #B9BAB9;
            border-color: white;
            border-style: solid;
            border-width: 4px;
            font-size: 30px;
            text-align: left;
            line-height: 0.5em;
        }

.timeline p {
  padding: 10px;
  margin: 20px;
  font-size: 20px;
  text-align: center;
}

        dt{
            font-family:Cabin;
            padding-left:40px;
            padding-top: 30px;
            font-weight: 600;
            display: block;
            font-size:25px;
            text-decoration:underline;
            
        }

        dd {
            font-family: Cabin;
            min-width: 900px;
            width: 100%;
            max-width: 900px;
            padding-top: 20px;
            padding-right: 5px;
            padding-bottom: 10px;
            font-weight: 400;
            display: block;
            font-size: 24px;
        }
              
            
!

JS

              
                
              
            
!
999px

Console