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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.



    <body id="main">
  <div id="container">
    <header id="header">
<h1 id="title">Eloise Roberts</h1>
<h2>A tribute to a very brave girl</h2>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <div id=img-div> <img class="img-div img1" src=""> <div id=img-caption>A healthy heart</div></div>
    <div class="text" id="tribute-info">
      <ul><li>2011 - Eloise was diagnosed with Tricuspid Atresia - Antenatally.</li>
        <li> January 24th 2012 - Eloise was born and discharged home 2 days later.</li>
        <li> January 30th - Eloise was rushed into hospital where she stayed for 4 weeks.</li>
        <li>Febuary 17th - Eloise nearly died oxygen saturations dropping to 23%.</li>
        <li>Febuary 19th - Eloise undergoes her first emergency open heart surgery (BT Shunt) and despite some rocky times recovers well.</li>
        <li>March 1st - Eloise is discharged home just 10 days after surgery.</li>
        <li>June 2012 - Eloise has her 2nd open heart surgery (Glenn shunt). Which was planned. Eloise was discharged after 5 days.</li> 
        <li>Eloise continued to grow into a strong little girl and managed to hit all her milestones.</li>
        <li>2015 - Eloise started nursery and managed extremely well despite her obvious setbacks.</li>
        <li>2016 - Eloise started at primary school and settled in with no conerns.</li>
        <li>2017 - Straight after completing her first year at school. Eloise was admitted back into hospital for her 3rd open heart surgery (The Fontan).</li>
        <li>2017 - Eloise made a full but delayed recovery meaning that she started her 2nd year of school a month late.</li>
        <li>2018 - Eloise completed her 2nd year of school and despite a huge setback managed to catch up with her peers</li>
        <li>Currently - Eloise is now enjoying her first proper summer holiday with her proud and grateful parents.</li>
   <div id="img-div"> <img class="img-div img2" id="image" src="">
     <div id="img-caption">A tricuspid heart</div>
    <img class="img-div img3" src="">
    <img class="img-div img4" src="">
    <img class="img-div img5" src="">
    <img class="img-div img6" src="">
    <img class="img-div img7" src="">
    <img class="img-div img8" src="">
    <img class="img-div img9" src="">
    <img class="img-div img10" src="">
    <img class="img-div img11" src="">
    <img class="img-div img12" src="">
      <div class="footer" >For more information please see <a id="tribute_link" href="" target="_blank"> Little Hearts Matter</a></div>
  <h3 class="donate">If you would like to donate to this wonderful charity please <a id="tribute-donate" href="" target="_blank">click here</h3></div>


                body {
  background:  #0e1111;
  text-align: center;

#container {
  display: grid;
  font-size: 200%;
  max-width: 60%;
  margin: 0 auto;
  color: #ffbb33;
  font-family: bookman;
  grid-template-columns: repeat(6, 1fr);
    "header header header header header header"
    "img1 text text text text img2"
    "img3 text text text text img4"
    "img5 text text text text img6"
    "img7 text text text text img8"
    "img9 text text text text img10"
    "img11 text text text text img12"
    "footer footer footer footer footer footer";

#img-caption {
  font-size: 50%;

#container> * {
  padding: 10px;

img {
  width: 100%;
  height: auto;
  display: block;

header {
  grid-area: header;

.img-div {
  max-width: 300px;
  max-height: auto;

.img1 {
  grid-area: img1;
.text {
  grid-area: text;

.img2 {
  grid-area: img2;
.img3 {
  grid-area: img3;
.img4 {
  grid-area: img4;
.img5 {
  grid-area: img5;
.img6 {
  grid-area: img6;
.img7 {
  grid-area: img7;
.img8 {
  grid-area: img8;
.img9 {
  grid-area: img9;
.img10 {
  grid-area: img10;
.img11 {
  grid-area: img11;
.img12 {
  grid-area: img12;

.footer, .donate {
  grid-area: footer;
  color: #f39c12;

@media only screen and (max-width: 600px) {
  #container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: "Header header header"
      "text text text"
      "img1 img2 img3"
      "img4 img5 img6"
      "img7 img8 img9"
      "img10 img11 img12"
      "footer footer footer"