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

              
                <!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Tribute to Little Sebastian</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <div id="main">
        <div id="header"></div>
        <div id="title">
        <h1> <a href="#">A Tribute Page to Li'l Sebastian</a></h1>
        <h3> A pony who forever remains in Pawnee's heart</h3>
        </div>
        </div>
        
        <div id="img-div">
            <img id="image" src="https://images.pexels.com/photos/1626584/pexels-photo-1626584.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940" alt="picture of an Icelandic pony taken from pexels.com">
            <div id="img-caption">Last picture taken of our beloved horse</div>
        </div>
        
      
      <!-- LIST -->
        
                
        <div id="tribute-info">
            <ul>
            <li>An animal, a legend, a friend</li>
            <li>A beacon of light</li>
            <li>Pawnee's horse</li>
            <li>The most monumental news to come out of Pawnee since the eradication of smallpox in 1993</li>
            <li>Will never leave our hearts and our memories</li>
            </ul>
                     <hr>
          
         <!-- MAIN CONTENT -->
          
            <p> "Sebastian may have been li’l, but his impact on this town, and the Parks Department, was anything but li’l. When his owners, Michael and Elizabeth Stone, first discovered him, Elizabeth says it was “like seeing an angel and being punched in the gut at the same time – because as perfect as he was, we knew we’d never see anything that perfect again.” Michael goes on to say, “I love my wife, I do. But I LOVED Li’l Sebastian.”</p>
                
            <p>Li’l Sebastian spent his years out in the field, changing the world. He was a goodwill ambassador for Indiana Veterans and went to Kuwait to entertain the troops. A champion climber, he was a member of the Great Lakes Ski Patrol and Emergency Rescue Team, serving as its captain from 1996-98. He participated in the celebrations for Queen Elizabeth II’s Golden Jubilee, even marching in front of Buckingham Palace. (Speaking of marching, that wonderful tiny horse trotted in every single Pawnee Independence Parade from 1987 on – except for 2003, when an ankle injury kept him sidelined. Though with no fewer than four floats in his honor, it sure felt like he was there!) And who can forget when he received his honorary degree from Notre Dame University? That’s Dr. Li’l Sebastian to you! </p>
            
            <p>(...)</p>
            
            <p>His legacy will live on. He sired over 200 mini-horse children, ensuring that future generations of Pawneeans, Americans and citizens of the world will continue laughing and sharing the joy of the Sebastian line.
            Li’l Sebastian, we miss you. But we know you are in heaven, looking down on us, doing your two favorite things: eating carrots and urinating freely. </p>
            
           <p id="leslie">So gallop on, Li’l Sebastian, in that big horsey ring in the sky." - LI’L SEBASTIAN OBITUARY by Leslie Knope</p>
           
      </div> 
            
      <!-- FOOTER -->
      
            <footer class="footer"> 
              
                <div>If you have time, you should read more about this incredible horse on <a id="tribute-link" href="http://pawneeindiana.com/obituary/" target="_blank">Pawnee's website.</a></div>
                
                <p>The subject of this website is fictional, taken from the American NBC sitcom/mockumentary called "Parks and Recreation". </p>
              
                <p id="last"> Photo by Svanur Gabriele, taken from Pexels.com.  </p>
            </footer>  
                        
    </body>
</html>
              
            
!

CSS

              
                
body{
    font: serif, Arial;
}

#main{
    display: block;
    width: 900px;
    border: 1px solid grey;
    margin: auto;    
    font-family: "Trebuchet MS", Helvetica;
}

#header {
    height: 0;
}

#title {
    display: block;
    width: 900px;
    text-align: center;
    background-color:cornsilk;
    font-family:cursive;
    height: 140px;
    padding-top: 2px;
    padding-bottom: 10px;
}

h1 a{
    text-decoration: none;
    font-size: 40px;
    color:burlywood;
}

h3 {
    font-size: 20px;
    color:chocolate;
}

#tribute-info{
    text-align:justify;
    background-color:cornsilk;
    margin-top: 8px;
    margin-right: 250px;
    margin-bottom: 3px;
    margin-left: 250px;
    border: 1px solid gray;
    padding-top: 20px;
    padding-right: 10px;
    padding-left: 10px;
}

#tribute-info li {
  line-height: 15px;
  text-align: justify;
  letter-spacing: 0.3px;
  text-overflow:clip;
  margin-left: 50px;
}

p {
  line-height: 24px;
  text-align: justify;
  letter-spacing: 0.3px;
  text-overflow: clip;
  margin-left: 70px;
  margin-right: 70px;
  margin-bottom: 25px;
}
    
hr {
  margin-left: 70px;
  margin-right: 70px;
  margin-top: 30px;
  margin-bottom: 30px;
}
    
#tribute-info ul li{
    margin-bottom: 10px;
}
    
#img-div{
    height:auto;
    max-width: 500px;
    text-align: center;
    padding: 6px;
    margin: 0 auto;
}
    
#img-div img{
    display: block;
    height: auto;
    margin: auto;
    max-width: 100%;
}

#img-caption{
    padding-top: 10px;
    font-size: 16px;
    text-align: center;
}

.footer{
    text-align:justify;
    background-color:cornsilk;
    margin-top: 8px;
    margin-right: 250px;
    margin-bottom: 3px;
    margin-left: 250px;
    border: 1px solid gray;
    padding-top: 20px;
    padding-right: 10px;
    padding-left: 10px;
    padding-bottom: 13px;
}

#leslie {
  margin-bottom: 80px;
}

#obituary {
  float: right;
}

.footer div{
  margin-left: 70px;
  margin-top: 20px;
}

#last{
  margin-bottom: 50px;
}

              
            
!

JS

              
                
              
            
!
999px

Console