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

              
                

    <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">
  </header>
   <div id=img-div> <img class="img-div img1" src="https://res.cloudinary.com/wiggyswig/image/upload/v1531771953/tribute%20resized/77df6f8b5c44687e1d7b9924f5082537_the-heart-of-the-matter-flow-diagram-and-blood-blood-flow-through-the-heart-drawing_440-406.gif"> <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>
      </ul>
  </div>
   <div id="img-div"> <img class="img-div img2" id="image" src="https://res.cloudinary.com/wiggyswig/image/upload/v1531774003/tribute%20resized/ds00796-r7_tricuspidatresiathu_jpg.jpg">
     <div id="img-caption">A tricuspid heart</div>
     </div>
    <img class="img-div img3" src="https://res.cloudinary.com/wiggyswig/image/upload/v1531771805/tribute%20resized/20160117_074155.jpg">
    <img class="img-div img4" src="https://res.cloudinary.com/wiggyswig/image/upload/v1531771805/tribute%20resized/20170816_151346.jpg">
    <img class="img-div img5" src="https://res.cloudinary.com/wiggyswig/image/upload/v1531771805/tribute%20resized/20160709_114017.jpg">
    <img class="img-div img6" src="https://res.cloudinary.com/wiggyswig/image/upload/v1531771805/tribute%20resized/20170817_095701.jpg">
    <img class="img-div img7" src="https://res.cloudinary.com/wiggyswig/image/upload/v1531771806/tribute%20resized/20170906_161029.jpg">
    <img class="img-div img8" src="https://res.cloudinary.com/wiggyswig/image/upload/v1531771805/tribute%20resized/20170610_153336.jpg">
    <img class="img-div img9" src="https://res.cloudinary.com/wiggyswig/image/upload/v1531771806/tribute%20resized/20171225_151744.jpg">
    <img class="img-div img10" src="https://res.cloudinary.com/wiggyswig/image/upload/v1531771806/tribute%20resized/20180124_174703.jpg">
    <img class="img-div img11" src="https://res.cloudinary.com/wiggyswig/image/upload/v1531771806/tribute%20resized/20171029_143442_042.jpg">
    <img class="img-div img12" src="https://res.cloudinary.com/wiggyswig/image/upload/v1531774112/tribute%20resized/20170823_142001.jpg">
    
  </div>
  
      <div class="footer" >For more information please see <a id="tribute_link" href="https://www.lhm.org.uk/" 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="https://mydonate.bt.com/donation/v4/chooseAmount.html?charity=56434&currentMonth=7" target="_blank">click here</h3></div>
</body>
              
            
!

CSS

              
                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);
  grid-template-areas: 
    "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"
  }
}


              
            
!

JS

              
                
              
            
!
999px

Console