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>
<head>
<title>Angel</title>
  
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Sofia">  
  
 </head>
<body>
 <main id="main">
  <h1 id="title">Angel's Travel Diary</h1>
  <section id="section">
  <figure id="img-div" class="img-div">
    <img
       id="image"     src="file:///Users/apple/Documents/angel%20travel%20diary/211656009_10223904700472856_1365236057633978750_n.jpeg"
       title="Angel at the beach in cornwall"
       alt="angel at the beach in cornwall"
         />
       <figcaption id="img-caption" class="img-caption">Angel enjoying the cornish waves.
    </figcaption>
  </figure>
  </section>
  <section id="tribute-info" class="section">
    <h3 id="headline" class="header">Here is a glimpse into Angel's life so far...</h3></section>
  <section id="section-2" class="section">
    <figure id="img-div-2" class="img-div">
      <img 
          id="image-2"
          class="image"
          src="https://scontent.fman4-1.fna.fbcdn.net/v/t1.6435-9/211609745_10223904700312852_1552418039699611747_n.jpg?_nc_cat=107&ccb=1-4&_nc_sid=730e14&_nc_ohc=sJSylGCHamEAX_FBNvv&_nc_ht=scontent.fman4-1.fna&oh=af65b4bfd8cc8212d3db37bc99bdc6b6&oe=6136FEDE"
          alt="angel looking out to sea"
           >
           <figcaption id="img-caption-2" class="figcaption">Angel looking out to sea at Land's End.</figcaption></figure>
    <h3 id="header" class="header"> Cornwall </h3>
    <p id="para" class="para">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Pulvinar neque laoreet suspendisse interdum consectetur libero id. Viverra maecenas accumsan lacus vel facilisis volutpat est velit. Ullamcorper dignissim cras tincidunt lobortis feugiat vivamus at. Neque vitae tempus quam pellentesque nec nam aliquam. Duis convallis convallis tellus id interdum velit laoreet id donec. Amet tellus cras adipiscing enim eu turpis egestas. Hendrerit dolor magna eget est lorem ipsum. Velit ut tortor pretium viverra. Neque vitae tempus quam pellentesque nec nam aliquam sem et. Gravida neque convallis a cras semper auctor. Nulla malesuada pellentesque elit eget gravida. Semper feugiat nibh sed pulvinar proin. Diam ut venenatis tellus in metus. Commodo elit at imperdiet dui accumsan sit. Aliquet porttitor lacus luctus accumsan tortor. Pharetra sit amet aliquam id diam maecenas ultricies mi. Non blandit massa enim nec dui. Sed faucibus turpis in eu mi bibendum neque egestas. Donec adipiscing tristique risus nec feugiat in fermentum posuere urna.
    </p>
    </div>
           </section>
    <section id="section-3">   
    <figure id="img-div-3">
         <img 
              id="image-3"
              class="image"
              src="https://scontent.fman4-1.fna.fbcdn.net/v/t1.6435-9/183623038_10223542264732189_2397322436300764155_n.jpg?_nc_cat=102&ccb=1-4&_nc_sid=730e14&_nc_ohc=0p6ZrsAq-gYAX_K9il4&_nc_ht=scontent.fman4-1.fna&oh=6fc2050d28472e7f81a0b7d1edb3d5cf&oe=61383F6B"
         alt="Angel meeting donkeys in brecon beacons."> 
         <figcaption id="img-caption-3" class="img-caption">
         Angel making friends in Brecon Beacon, South Wales.</figcaption>
    </figure>
     <div>
      <h3 id="header-3" class="header">Brecon Beacon</h3>
    <p id="para" class="para">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Pulvinar neque laoreet suspendisse interdum consectetur libero id. Viverra maecenas accumsan lacus vel facilisis volutpat est velit. Ullamcorper dignissim cras tincidunt lobortis feugiat vivamus at. Neque vitae tempus quam pellentesque nec nam aliquam. Duis convallis convallis tellus id interdum velit laoreet id donec. Amet tellus cras adipiscing enim eu turpis egestas. Hendrerit dolor magna eget est lorem ipsum. Velit ut tortor pretium viverra. Neque vitae tempus quam pellentesque nec nam aliquam sem et. Gravida neque convallis a cras semper auctor. Nulla malesuada pellentesque elit eget gravida. Semper feugiat nibh sed pulvinar proin. Diam ut venenatis tellus in metus. Commodo elit at imperdiet dui accumsan sit. Aliquet porttitor lacus luctus accumsan tortor.</p>
      </div>
  </section>
  <section id="section-4" class="section">
    <figure id="img-div-4" class="img-div">
      <img 
          id="image-4"
          class="image"
          src="https://scontent.fman4-2.fna.fbcdn.net/v/t1.6435-9/139207457_10222693795640992_8228454638031748715_n.jpg?_nc_cat=109&ccb=1-4&_nc_sid=730e14&_nc_ohc=8xHzFi70uAgAX_1xMZ2&tn=ZM3vFiqbKPV_BQNI&_nc_ht=scontent.fman4-2.fna&oh=3604d58abdcbc277c2bef9f6158d79c9&oe=613673E9"
          alt="angel at formby beach" />
          <figcaption id="img-caption-4" class="img-caption">Angel at Formby Beach
      </figcaption>
    </figure>
    <div>
      <h3 id="header-4" class="header">Formby</h3>
      <p id="para" class="para">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Pulvinar neque laoreet suspendisse interdum consectetur libero id. Viverra maecenas accumsan lacus vel facilisis volutpat est velit. Ullamcorper dignissim cras tincidunt lobortis feugiat vivamus at. Neque vitae tempus quam pellentesque nec nam aliquam. Duis convallis convallis tellus id interdum velit laoreet id donec. Amet tellus cras adipiscing enim eu turpis egestas. Hendrerit dolor magna eget est lorem ipsum. Velit ut tortor pretium viverra. Neque vitae tempus quam pellentesque nec nam aliquam sem et. Gravida neque convallis a cras semper auctor. Nulla malesuada pellentesque elit eget gravida. Semper feugiat nibh sed pulvinar proin. Diam ut venenatis tellus in metus. Commodo elit at imperdiet dui accumsan sit. Aliquet porttitor lacus luctus accumsan tortor.</p>
    </div>
   </section>
  
</main>
</body>

</html>
              
            
!

CSS

              
                main {
  background-color: #DDF2FE
}

h1 {
  font-family: monospace;
  font-size: 40px;
  text-align: center;
  margin-top: -100px;
  padding-top: 140px;
  padding-bottom: 30px;
  text-decoration: underline;
}

#img-div {
  position: relative;
  width: 100%;
  height: auto;
  margin: auto;
  display: block;
  top: 0;
  left: 0;
}

p::first-letter {
  font-size: 40px;
}

#section {
  width: 100%;
}

section {
  display: flex;
  justify-content: center;
  text-align: center;
}

figure {
  display: inline-block;
  width: 30%;
  float: left;
}


#image {
   width: 100%;
  height: auto;
}

img {
  width: 100%;
}
  
figcaption {
    background: rgba(0, 0, 0, 0.5);
    color: #FFF;
    display: flex;
    justify-content: center;
    text-align: center;
  position: absolute;
}

h3 {
  position: relative;
  height: 15%;
  width: 35%;
  font-family: "sofia";
  font-size: 40px;
  display: inline;
  border: 4px black dashed;
  padding: 0px 0px 0px 7px;
  top: -10px; 
  
}

p {
  width: 500px;
  height: auto;
  
}
              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console