css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
	<!--Allows responsive resizing when screen size changes -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<!--	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> -->
		<title>FCC David Attenborough Tribute</title><!--What's shown on tab text-->
		<link rel="stylesheet" href="normalize.css" type="text/css">
		<link rel="stylesheet" href="main.css" type="text/css"><!--Links to css-->
	</head> 
	<body>
	<!--HERO IMAGE STARTS HERE-->
		<div class="hero-image">
			<div class="hero-text">
				<h1>David Attenborough</h1>
			</div>
		</div>
	<!--HERO IMAGE ENDS-->
	<!--START OF ABOUT SECTION-->
		<div class="about-title">
			<h1>Who is David Attenborough?</h1> <!--ABOUT SECTION TITLE-->	
			<p class="about-david">David Attenborough is one of the most widely respected TV broadcasters and has become known as the face and voice of natural history documentaries. His career in broadcasting has stretched over more than a half a century to 1952. You may recognise him from award-winning nature documentaries such as Life on Earth and Planet Earth.</p>
		</div>
	<!-- END OF ABOUT SECTION -->
	<!-- START OF QUOTE SECTION -->
		<div class="million-quote">
			<blockquote>There are some four million different kinds of animals and plants in the world. Four million different solutions to the problems of staying alive. This is the story of how a few of them came to be as they are.</blockquote>
		</div>
	<!-- END OF QUOTE SECTION -->
	<!-- START OF TIMELINE TITLE -->
		<div class="timeline-title">
			<h1>Timeline</h1>
		</div>
		<div class="timeline-title-shadow"></div>
	<!-- END OF TIMELINE TITLE -->
	<!-- START OF GRID SECTION -->
	<!-- Image 01-->
		<div class="gridsection">
			<figure class="timeline-img">
		    	<img src="https://res.cloudinary.com/pixxel123/image/upload/v1529675103/Attenborough_Tribute_FCC/1926_childhood.jpg" alt="">
		    	<figcaption> <!--figcaption is related to figure -->
		      		<p class="img-title">1926</p>
		      		<p class="img-desc">David is born in Isleworth, London.</p>
		    	</figcaption>
			</figure>
	<!-- Image 02-->
			<figure class="timeline-img">
			    <img src="https://res.cloudinary.com/pixxel123/image/upload/v1529675102/Attenborough_Tribute_FCC/1934_tv.jpg" alt="">
			    <figcaption>
			      <p class="img-title">1934</p>
			      <p class="img-desc">Sees his first natural history program.</p>
			    </figcaption>
			 </figure>
	<!-- Image 03-->
			  <figure class="timeline-img">
			    <img src="https://res.cloudinary.com/pixxel123/image/upload/v1529675102/Attenborough_Tribute_FCC/1945_cambridge.jpg" alt="">
			    <figcaption>
			      <p class="img-title">1945</p>
			       <p class="img-desc">Earns a scholarship to Clare College in Cambridge in 1945 for a two year course.</p>
			    </figcaption>
			  </figure>
	<!-- Image 04-->
			  <figure class="timeline-img">
			    <img src="https://res.cloudinary.com/pixxel123/image/upload/v1529675102/Attenborough_Tribute_FCC/1950_marriage.jpg" alt="">
			    <figcaption>
			      <p class="img-title">1950</p>
            <p class="img-desc">Marries Jane Elizabeth Ebsworth Oriel.</p>
			    </figcaption>
			  </figure>
	<!-- Image 05-->
			  <figure class="timeline-img">
			    <img src="https://res.cloudinary.com/pixxel123/image/upload/v1529675102/Attenborough_Tribute_FCC/1969_bbc_director.jpg" alt="">
			    <figcaption>
			      <p class="img-title">1969</p>
            <p class="img-desc">Becomes BBC's program director from 1969 to 1972.</p>
			    </figcaption>
			  </figure>
	<!-- Image 06-->
			  <figure class="timeline-img">
			    <img src="https://res.cloudinary.com/pixxel123/image/upload/v1529675103/Attenborough_Tribute_FCC/1974_david_cbe.jpg" alt="">
			    <figcaption>
			      <p class="img-title">1974</p>
            <p class="img-desc">Appointed Commander of the Order of the British Empire (CBE) for services to nature conservation.</p>
			    </figcaption>
			  </figure>
	<!-- Image 07-->
			  <figure class="timeline-img">
			    <img src="https://res.cloudinary.com/pixxel123/image/upload/v1529675102/Attenborough_Tribute_FCC/1979_life_on_earth.jpg" alt="">
			    <figcaption>
			      <p class="img-title">1979</p>
            <p class="img-desc">Release of <i>Life on Earth</i> series.
			    </figcaption>
			  </figure>
	<!-- Image 08-->
			  <figure class="timeline-img">
			    <img src="https://res.cloudinary.com/pixxel123/image/upload/v1529675103/Attenborough_Tribute_FCC/1985_knight.jpg" alt="">
			    <figcaption>
			      <p class="img-title">1985</p>
            <p class="img-desc">Awarded a Knighthood by Queen Elizabeth II.</p>
			    </figcaption>
			  </figure>
      <!-- Image 09-->
			  <figure class="timeline-img">
			    <img src="https://res.cloudinary.com/pixxel123/image/upload/v1529675102/Attenborough_Tribute_FCC/1993_dinosaur.jpg" alt="">
			    <figcaption>
			      <p class="img-title">1993</p>
            <p class="img-desc"><i>Attenborosaurus conybeari</i>, an extinct type of dinosaur, is named after David.
			    </figcaption>
			  </figure>
      <!-- Image 10-->
			  <figure class="timeline-img">
			    <img src="https://res.cloudinary.com/pixxel123/image/upload/v1529683299/Attenborough_Tribute_FCC/2006_planet_earth.jpg" alt="">
			    <figcaption>
			      <p class="img-title">2006</p>
            <p class="img-desc"><i>Planet Earth</i> series is released, winning four Emmys, a Peabody Award, and a Royal Television Society award.</p>
			    </figcaption>
			  </figure>
      <!-- Image 11-->
			  <figure class="timeline-img">
			    <img src="https://res.cloudinary.com/pixxel123/image/upload/v1529683491/Attenborough_Tribute_FCC/2011_frozen_planet.jpg" alt="">
			    <figcaption>
			      <p class="img-title">2011</p>
            <p class="img-desc"><i>Frozen Planet</i> series is released.</p> 
			    </figcaption>
			  </figure>
      <!-- Image 12-->
			  <figure class="timeline-img">
			    <img src="https://res.cloudinary.com/pixxel123/image/upload/v1529683644/Attenborough_Tribute_FCC/2016_planet_earth2.jpg" alt="">
			    <figcaption>
			      <p class="img-title">2016</p>
            <p class="img-desc"><i>Planet Earth II</i> is released.</p>
			    </figcaption>
			  </figure>
		</div>
	<!-- END OF GRID SECTION -->
    <div>
      <p class="find-more">To find out more about David's life and accomplishments, please visit <a href= "https://en.wikipedia.org/wiki/David_Attenborough" target="_blank">David's Wikipedia page.</a></p>
    </div>
	</body>
</html>

            
          
!
            
              * {
	box-sizing: border-box;
}
body, html{
	height: 100%;
	margin: 0 auto;
	background-color: rgba(248, 246, 230,0.5);/*Background colour of page*/
	text-align: center; /*Forces everything in body to be centered*/
}

.hero-image{ /*Main image at top of page*/
 	background-image:url(http://icon.azureedge.net/icon//prod-admin-film/1ddd1756-42d6-44ac-bad3-650168fb11ae/ae54c8a2-c190-4304-8b23-06bba14100c3/davidattenboroughsnaturalcuriositiesseries4ep101.jpg?width=1600&height=600&mode=stretch); 
	width:100%; /*Width of image*/
	height: 70%;/*Height of image*/
	box-shadow: inset 2000px 0 0 0 rgba(100, 100, 100, 0.15); /*Gradient to darken image*/
	background-position: 0% 30%;/*Slightly pushes image up*/
	background-repeat: no-repeat;/*Only shows image once*/
	background-size: cover;/*Resize background image to cover entire container*/
	position: relative;/*Positioned relative to its normal position*/
}
@media (min-width: 320px) and (max-width: 1500px) {
  .hero-image {
    background-position: 80%;
  }
}

h1 {
	font-weight: 300;
  letter-spacing: .5em;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .12);
  position: relative;
}
.hero-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 4px solid white;
	padding: 25px;
	color: white;
	font-size: 36px;
}
@media (min-width: 320px) and (max-width: 570px) {
  .hero-text h1 {
    font-size: 1.4rem;
  }
}
@media (min-width: 320px) and (max-width: 1024px) {
  .hero-text {
    width: 95%;
    padding: 10px;
    border: 2px solid white;
  }
}
.about-title {
	margin: 0 auto;
	width: 70%;
	margin-top: 60px;
	font-size: 20px;
}
.about-david {
	color: black;
	padding: 20px;
	text-shadow: 0 1px 0 rgba(0, 0, 0, .12);
	position: relative;
	font-size: 20px;
	line-height: 145%;
}

.million-quote {
	margin: 10px 10%;
	padding: 10px;
}
blockquote { /*This is is the general formatting for the quote*/
	width: 40%; /*How wide the quote window is*/
	quotes:"\201C" "\201D";/*Style of quotation marks in Unicode*/
	border: none; /*Gets rid of blockquote border on the left*/
	margin: 0 auto; /*Centers blockquote div on page*/
} 
blockquote:before, blockquote:after { /*Sets style for both before & after quotes*/
	font:bold 55px/1px Times; /*Sets Font size and style*/
	color:#4a4b4f; /*Colour of quote marks*/
	position: absolute; /*Anchors quote marks to div*/
	text-shadow: 0 4px 0 rgba(0, 0, 0, .12); /*Quote shadows, 4px offset*/
}
blockquote:before { /*:before selector sets quote before text*/
	content:open-quote;
	margin:15px 0 0 -35px;
}
blockquote:after {
	content:close-quote;
	margin:23px 0 0 8px;
}
.timeline-title {
	position: relative; /*position relative also allows z-index to work as needs postion attribute*/
	text-align: center;
	border-top:solid #4a4b4f 4px;
	border-bottom:solid #4a4b4f 4px;
	width: 400px;
	height: 100px; 
	margin: 0 auto;
	margin-top: 40px;
	margin-bottom: 30px;
  padding-top: 20px;
	z-index: 5; /*brings section forward so that timeline-shadow can be behind it*/
}
.timeline-title-shadow { /*duplicate timeline borders moved behind for shadow effect */
	position: relative;
	border-top:solid rgba(0, 0, 0, .12) 4px;
	border-bottom:solid rgba(0, 0, 0, .12) 4px;
	width: 400px;
	height: 100px; 
	margin: 0 auto; /*Centers section*/
	top: -128px; /*Pushes section up so its just under the original title*/
	margin-bottom: -70px; /*Brings up margin so that next section is closer*/
}
.gridsection {
  margin: 0 auto;
	display: flex; /*Sets container to flexible for flexbox use*/
  flex-wrap: wrap;
  text-align: center;
  justify-content: center;
  max-width: 70%;
}

.timeline-img{
	height: 250px;
	width: 250px;
/*  max-width: 25%; */
  margin: 10px;
	overflow: hidden;
}

.img-title {
	position: relative;
	left: 32%;
	top: -185px;
/*	background-color: red; */
	text-transform: uppercase;
	text-shadow: 0 2px 0 rgba(237, 237, 237, .22);
	position: relative;
	transform: translate(-50%);
	border: 4px solid white;
	color: white;
	font-size: 35px;
	max-width: 35%;
	max-height: 10%;
	transform: translateY(30px);
  transition: 0.10s;
}
.img-desc {
	position: relative;
/*	background-color: blue; */
	color: white;
	top: -70px;
	bottom: -100px;
  transition: 0.15s;
  margin: 0 10% 0 10%;
}
.timeline-img:hover .img-title {
 	top: -245px;
}
.timeline-img:hover .img-desc{
	top: -220px;
	transform: translateY(0);
}
.timeline-img:hover img{
  -webkit-filter: brightness(40%) grayscale(100%);
  filter: brightness(40%) grayscale(100%);
  -webkit-transition: all 0.1s ease;
  -moz-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  -ms-transition: all 0.2s ease;
  transition: all 0.1s ease;
}
.find-more {
  padding: 50px;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .gridsection {
    max-width: 95%;
  }
}
@media (min-width: 320px) and (max-width: 1024px) {
  .about-title {
    width: 95%;
  }
  .about-title h1 {
    font-size: 26px;
  }
    .million-quote {
    width: 100%;
    margin: -25px 2%;
    margin: 0 auto;
  }
  .timeline-img:hover img{
    transition: all 1.2s ease;
  }
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console