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 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

              
                <!--https://bootstrapbay.com/blog/bootstrap-3-carousel-tutorial/
https://codepen.io/codyhouse/full/FdkEf/
https://codyhouse.co/gem/vertical-timeline/
-->

<link href="https://fonts.googleapis.com/css?family=Damion" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=La Belle Aurore" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Roboto Mono" rel="stylesheet" type="text/css">


<h1>Princess Diana</h1>
<h2>"the people's princess"</h2>

<div class="getty embed image" id="princess_image" style="background-color:#fff;display:inline-block;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;color:#a7a7a7;font-size:11px;width:100%;max-width:407px;"><div style="padding:0;margin:0;text-align:left;"><a href="http://www.gettyimages.com/detail/76214747" target="_blank" style="color:#a7a7a7;text-decoration:none;font-weight:normal !important;border:none;display:inline-block;">Embed from Getty Images</a></div><div style="overflow:hidden;position:relative;height:0;padding:145.945946% 0 0 0;width:100%;"><iframe src="//embed.gettyimages.com/embed/76214747?et=3ZLvRr1BRvlcltpRDapqyg&viewMoreLink=off&sig=7eQcNEbHKGxSAJ4oKqN06kDwhSN5Q6wOfU9bRkr6aog=&caption=true" width="407" height="594" scrolling="no" frameborder="0" style="display:inline-block;position:absolute;top:0;left:0;width:100%;height:100%;margin:0;"></iframe></div><p style="margin:0;"></p></div>

<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
  <!-- Indicators -->
  <ol class="carousel-indicators">
    <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
    <li data-target="#carousel-example-generic" data-slide-to="1"></li>
    <li data-target="#carousel-example-generic" data-slide-to="2"></li>
  </ol>
 
  <!-- Wrapper for slides -->
  <div class="carousel-inner">
    <div class="item active">
     <p class="quote">“I think the biggest disease the world suffers from in this day and age is the disease of people feeling unloved. I know that I can give love for a minute, for half an hour, for a day, for a month, but I can give. I am very happy to do that, I want to do that.”</p>
    </div>
    <div class="item">
      <p class="quote">“Carry out a random act of kindness, with no expectation of reward, safe in the knowledge that one day someone might do the same for you.”</p>
    </div>
    <div class="item">
      <p class="quote"> “The greatest problem in the world today is intolerance. Everyone is so intolerant of each other.”</p>
    </div>
    </div>
 
  <!-- Controls -->
  <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
    <span class="glyphicon glyphicon-chevron-left"></span>
  </a>
  <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
    <span class="glyphicon glyphicon-chevron-right"></span>
  </a>
</div> <!-- Carousel -->
<div id="history" class="container">
  <ul>
    <li><b>July 1, 1961 </b> :

    Diana Frances Spencer born in Norfolk, England</li>
    <li><b>1969 </b> :

    Diana's parents divorced; her mother ran away with an heir to a wallpaper fortune</li>
    <li><b>1970 </b> :

    After being educated at home by tutors, Diana was sent to Riddlesworth Hall, Norfolk, a boarding school</li>
    <li><b>1973 </b> :

    Diana began her education at the West Heath Girls School, Kent, an exclusive girls' boarding school</li>
    <li><b>1974 </b> :

    Diana moved to the Spencer family estate in Althorp</li>
    <li><b>1976 </b> :

    Diana's father married Raine Legge, whose mother was Barbara Cartland, romance novelist</li>
    <li><b>1977 </b> :

    Diana dropped out of West Girls Heath School; her father sent her to a Swiss finishing school, Chateau d'Oex, but she only stayed a few months</li>
    <li><b>1977 </b> :

    Charles and Diana met again; she taught him to tap-dance</li>
    <li><b>1979 </b> :

    Diana moved to London, where she worked as a housekeeper, nanny, and kindergarten teacher's aide; she lived with three other girls in a three-bedroom flat purchased by her father</li>
    <li><b>1980 </b> : 

    On a visit to see her sister Jane, who was married to Robert Fellowes, an assistant secretary to the Queen, Diana and Charles met again; soon, Charles asked Diana for a date</li>
    <li><b>February 3, 1981 </b> : 

    Prince Charles proposed to Lady Diana Spencer at a dinner for two at Buckingham Palace</li>
    <li><b>February 8, 1981 </b> :

    Lady Diana left for a previously-planned vacation in Australia</li>
    <li><b>July 29, 1981 </b> : 

    wedding of Lady Diana Spencer and Charles, Prince of Wales, at St. Paul's Cathedral; broadcast worldwide</li>
    <li><b>November 5, 1981  </b> :

    official announcement that Diana was pregnant</li>
    <li><b>June 21, 1982 </b> :

    Prince William born (William Arthur Philip Louis)</li>
    <li><b>September 15, 1984 </b> :

    Prince Harry born (Henry Charles Albert David)

1986</li>
    <li><b>June 16, 1992 </b> :

    publication of Morton's book Diana: Her True Story, including the story of Charles' long affair with Camilla Parker Bowles and allegations of five suicide attempts including once during Diana's first pregnancy; it later became apparent that Diana or at least her family had cooperated with the author, her father contributing many family photographs</li>
    <li><b>December 9, 1992 </b> :

    formal announcement of the legal separation of Diana and Charles</li>
    <li><b>February 29, 1996 </b> :

    Princess Diana announced she'd agreed to a divorce</li>
    <li><b>August 28, 1996 </b> :

    divorce of Diana, Princess of Wales, and Charles, Prince of Wales, final; Diana received about $23 million settlement plus $600,000 per year, retained the title "Princess of Wales" but not the title "Her Royal Highness," continued to live at Kensington Palace; agreement was that both parents were to be active in their children's lives</li>
    <li><b>1997 </b> :

    Nobel Peace Prize went to the International Campaign to Ban Landmines, for which Diana had worked and traveled</li>
    <li><b>June 1997 </b> :

    Christie's in New York auctioned 79 of Diana's evening gowns; proceeds of about $3.5 million went to cancer and AIDS charities.</li>
    <li><b>1997</b> :

    linked romantically with 42-year-old "Dodi" Fayed, whose father, Mohammed al-Fayed, owned Harrod's Department Store and Paris' Ritz Hotel

</li>
    <li><b>August 31, 1997 </b> :

    Diana, Princess of Wales, died of injuries sustained in a car accident, in Paris, France</li>
    <li><b>September 6, 1997 </b> :

    Princess Diana's funeral. She was buried at the Spencer estate at Althorp, on an island in a lake.</li>
</ul>
</div>

<p class="reference"><b>To read more about this incredible woman checkout <a href="https://en.wikipedia.org/wiki/Diana,_Princess_of_Wales">Wikipedia</a></b></p>
<hr>
<p class="footer">
  Written and coded by <a href="https://github.com/rashmiagar">Rashmi Agarwal.
  </a></p>


              
            
!

CSS

              
                body{
 margin: 0px 50px;
}
h1{
  font-family: Damion;
  color: #D62B83;
  font-size: 200px;
  margin-bottom: -50px;
}
h1, h2 {
  text-align: center;
}
h2 {
  margin-bottom: 50px;
}
.carousel-inner > .item > img,
  .carousel-inner > .item > a > img {
      width: 90%;
      margin:  auto;
  }
.carousel-inner .quote {
  width: 90%;
  margin: auto;
}
#carousel-example-generic{
  width: 60%;
  float: right;
}
#history{
  clear: both;
  font-family: Roboto Mono, Sans;
  background-color: #C4C0CC;
  padding: 50px 200px;
  margin-left: -5px;
}
.carousel-control {
/*   background-color: blue; */
}
.carousel-inner{
  background-color: #8FCCEB;
  text-align: center;
}
#princess_image {
  float: left;
  margin-bottom: 50px;
  border-color: green;
  border-width: 20px;
  border-style: solid;
}

p.quote {
  height: 590px;
  text-align: center;
  font-size: 40px;
  font-family: La Belle Aurore, Helvetica;
  
}

.reference{
  font-family: Sans-serif;
  font-size: 20px;
}
li{
  margin: 15px;
}
.footer{
  text-align: center;
}
 
              
            
!

JS

              
                
              
            
!
999px

Console