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

              
                <main id="main">
  <section>
    <h1 id="title">A Tribute To </h1>
    <div id="img-div">
      <figure>
      <img id="image" src="https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fimages2.minutemediacdn.com%2Fimage%2Fupload%2Fc_fill%2Cg_auto%2Ch_1248%2Cw_2220%2Fv1555924051%2Fshape%2Fmentalfloss%2Falf-header.jpg%3Fitok%3DX5N4esgu&f=1&nofb=1" alt="A picture of ALF">
        <figcaption id="img-caption">ALF</figcaption>
      </figure>
    </div
   </section>
    <section>
    <article id="tribute-info">
      <p>
      ALF is an American television sitcom that aired on NBC from September 22, 1986, to March 24, 1990.
</p>
      <p>
The title character is ALF (an acronym for "alien life form") who crash-lands in the garage of the suburban middle-class Tanner family. The series stars Max Wright as father Willie Tanner, Anne Schedeen as mother Kate Tanner and Andrea Elson and Benji Gregory as their children, Lynn and Brian Tanner. ALF was performed by puppeteer Paul Fusco, who co-created the show with Tom Patchett.
      </p>
      <p>
Produced by Alien Productions, ALF originally ran for four seasons and produced 99 episodes, including three one-hour episodes ("Try to Remember", "ALF's Special Christmas" and "Tonight, Tonight") that were divided into two parts for syndication, totaling 102 episodes. The series proper concluded with an unresolved cliffhanger, but the later TV movie, Project: ALF, provided a series finale for the franchise.
      </p>
      <p>
In August 2018, Warner Bros. Television announced development of an ALF reboot. These plans were cancelled in November 2018.
      </p>

      
    </article>
  </section>
  
</main>
    <footer>
            <a id="tribute-link" href="https://www.imdb.com/title/tt0090390/" target="_blank">More information about ALF</a>
    </footer>
    

              
            
!

CSS

              
                body {
  background: url("https://external-content.duckduckgo.com/iu/?u=http%3A%2F%2Ftrendintech.com%2Fwp-content%2Fuploads%2F2017%2F09%2Fgalaxy-wallpaper-11-2.jpg&f=1&nofb=1");
  background-size: cover;
  background-repeat:no-repeat;
  
}

#title {
  font-size:3em;
  color:whitesmoke;
  letter-spacing:4px;
}

img {
  width:50%;
  border-radius:5%;
  box-shadow: 0 30px 40px rgba(0,0,0,.2);
  max-width: 100%;
  display: block ;
  margin:0 auto;

}

#main, footer{
  
  font-family:"Gill Sans", san-serif;
  color:black;
  letter-spacing:1.5px;
  font-weight:100;
  display:flex;
  flex-direction:column;
  text-align:center;
  align-items:center;
  width:100vw;
  padding:0 15% 0 15%;
  max-width: 960px;
  display:block;
}

#tribute-info{
   background: linear-gradient(96.2deg, rgb(255, 230, 112, 0.4) 10.4%, rgb(255, 100, 100, 0.8) 43.8%, rgb(0, 93, 219, 0.8) 105.8%);
  border-radius: 10px;
  
}

#img-caption {
  font-weight:bold;
  font-size:2em;
  color:whitesmoke;
}

article {

}
a {
  border:1px solid #680747;
  border-radius:5px;
  padding:5px 10px;
  text-decoration:none;
  background-color:#680747;
  color:whitesmoke;
  transition: box-shadow 500ms ease-in-out;
  }

a:hover{
  box-shadow:  0 2px #f70776;
  color:yellow;
}


@media (min-width:600px){
  #main #title{
    font-size:2em;
    letter-spacing:.9px;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console