HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs 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 its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>General Robert Baden-Powell - Tribute Page</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy"
crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,500" rel="stylesheet">
<link href="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/ekko-lightbox.css" rel="stylesheet">
<script defer src="https://use.fontawesome.com/releases/v5.0.2/js/all.js"></script>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container" id="main">
<header class="title">
<h1 id="title">General Robert Baden-Powell</h1>
<h2>Founder of the International Scouting Movement</h2>
<figure id="img-div">
<img id="image" src="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/baden-powell.jpg" alt="R. Baden-Powell with scouts"
/>
<figcaption id="img-caption">
In the center General Robert Baden-Powell during Imperial Jamboree in Olympia, London 1924. Credit: Getty Images.
</figcaption>
</figure>
</header>
<main>
<section class="timeline" id="tribute-info">
<h1>TIMELINE</h1>
<div id="accordion" role="tablist">
<div class="card">
<div class="card-header" role="tab" id="headingOne">
<h5 class="mb-0">
<a data-toggle="collapse" href="#collapseOne" role="button" aria-expanded="true" aria-controls="collapseOne">
<i class="fas fa-chevron-circle-right"></i>
22 February 1857 - Robert Baden-Powell Birth
</a>
</h5>
</div>
<div id="collapseOne" class="collapse show" role="tabpanel" aria-labelledby="headingOne" data-parent="#accordion">
<div class="card-body">
<a href="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/BP-family.jpg" data-toggle="lightbox">
<img src="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/BP-family.jpg" class="img-fluid thumbnail">
</a>
<h5 class="description">Born in Paddington, London, England</h5>
</div>
</div>
</div>
<div class="card">
<div class="card-header" role="tab" id="headingTwo">
<h5 class="mb-0">
<a class="collapsed" data-toggle="collapse" href="#collapseTwo" role="button" aria-expanded="false" aria-controls="collapseTwo">
<i class="fas fa-chevron-circle-right"></i>
20 February 1876 - Baden-Powell joins army
</a>
</h5>
</div>
<div id="collapseTwo" class="collapse" role="tabpanel" aria-labelledby="headingTwo" data-parent="#accordion">
<div class="card-body">
<a href="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/young_BP.jpg" data-toggle="lightbox">
<img src="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/young_BP.jpg" class="img-fluid thumbnail">
</a>
<h5 class="description">Joined the British army and appointed as Sub-lieutenant for the 13th Hussars in Lucknow,
India, and specialised in scouting, map-making and reconnaissance</h5>
</div>
</div>
</div>
<div class="card">
<div class="card-header" role="tab" id="headingThree">
<h5 class="mb-0">
<a class="collapsed" data-toggle="collapse" href="#collapseThree" role="button" aria-expanded="false" aria-controls="collapseThree">
<i class="fas fa-chevron-circle-right"></i>
22 February 1899 - Baden-Powell’s Successful Defense of Mafeking Town
</a>
</h5>
</div>
<div id="collapseThree" class="collapse" role="tabpanel" aria-labelledby="headingThree" data-parent="#accordion">
<div class="card-body">
<a href="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/mafeking.jpg" data-toggle="lightbox">
<img src="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/mafeking.jpg" class="img-fluid thumbnail">
</a>
<h5 class="description">Declared a hero for successfully defending the Mafeking Town during the Boer War
and was promoted to Major-General by Queen Victoria</h5>
</div>
</div>
</div>
<div class="card">
<div class="card-header" role="tab" id="headingFour">
<h5 class="mb-0">
<a class="collapsed" data-toggle="collapse" href="#collapseFour" role="button" aria-expanded="false" aria-controls="collapseFour">
<i class="fas fa-chevron-circle-right"></i>
01 August 1907 - Baden-Powell Organised the Experimental Camp
</a>
</h5>
</div>
<div id="collapseFour" class="collapse" role="tabpanel" aria-labelledby="headingFour" data-parent="#accordion">
<div class="card-body">
<a href="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/brownsea.jpg" data-toggle="lightbox">
<img src="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/brownsea.jpg" class="img-fluid thumbnail">
</a>
<h5 class="description">Held a seven-day experimental camp for 20 boys on Brownsea Island, Dorset, England</h5>
</div>
</div>
</div>
<div class="card">
<div class="card-header" role="tab" id="headingFive">
<h5 class="mb-0">
<a class="collapsed" data-toggle="collapse" href="#collapseFive" role="button" aria-expanded="false" aria-controls="collapseFive">
<i class="fas fa-chevron-circle-right"></i>
22 February 1910 - Baden-Powell Retired from the British Army
</a>
</h5>
</div>
<div id="collapseFive" class="collapse" role="tabpanel" aria-labelledby="headingFive" data-parent="#accordion">
<div class="card-body">
<a href="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/general-bp.jpg" data-toggle="lightbox">
<img src="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/general-bp.jpg" class="img-fluid thumbnail">
</a>
<h5 class="description">Retired from the British army as Lieutenant General and focused on the Scout Movement</h5>
</div>
</div>
</div>
<div class="card">
<div class="card-header" role="tab" id="headingSix">
<h5 class="mb-0">
<a class="collapsed" data-toggle="collapse" href="#collapseSix" role="button" aria-expanded="false" aria-controls="collapseSix">
<i class="fas fa-chevron-circle-right"></i>
22 February 1912 - Baden-Powell’s Marriage
</a>
</h5>
</div>
<div id="collapseSix" class="collapse" role="tabpanel" aria-labelledby="headingSix" data-parent="#accordion">
<div class="card-body">
<a href="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/BP-wife.jpg" data-toggle="lightbox">
<img src="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/BP-wife.jpg" class="img-fluid thumbnail">
</a>
<h5 class="description">Married Olave St Clair Soames and subsequently had three children – Arthur, Heather
and Betty
</h5>
</div>
</div>
</div>
<div class="card">
<div class="card-header" role="tab" id="headingSeven">
<h5 class="mb-0">
<a class="collapsed" data-toggle="collapse" href="#collapseSeven" role="button" aria-expanded="false" aria-controls="collapseSeven">
<i class="fas fa-chevron-circle-right"></i>
19 February 1913 - Baden-Powell Established a Training Centre for Scout Leaders
</a>
</h5>
</div>
<div id="collapseSeven" class="collapse" role="tabpanel" aria-labelledby="headingSeven" data-parent="#accordion">
<div class="card-body">
<a href="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/gilwell.jpg" data-toggle="lightbox">
<img src="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/gilwell.jpg" class="img-fluid thumbnail">
</a>
<h5 class="description">Started Gilwell Park Training Centre for Scout Leaders in London, England</h5>
</div>
</div>
</div>
<div class="card">
<div class="card-header" role="tab" id="headingEight">
<h5 class="mb-0">
<a class="collapsed" data-toggle="collapse" href="#collapseEight" role="button" aria-expanded="false" aria-controls="collapseEight">
<i class="fas fa-chevron-circle-right"></i>
30 July 1920 - Baden-Powell Acclaimed Chief Scout of the World
</a>
</h5>
</div>
<div id="collapseEight" class="collapse" role="tabpanel" aria-labelledby="headingEight" data-parent="#accordion">
<div class="card-body">
<a href="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/bp.jpg" data-toggle="lightbox">
<img src="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/bp.jpg" class="img-fluid thumbnail">
</a>
<h5 class="description">Acclaimed Chief Scout of the World at the 1st World Scout Jamboree in London, England</h5>
</div>
</div>
</div>
<div class="card">
<div class="card-header" role="tab" id="headingNine">
<h5 class="mb-0">
<a class="collapsed" data-toggle="collapse" href="#collapseNine" role="button" aria-expanded="false" aria-controls="collapseNine">
<i class="fas fa-chevron-circle-right"></i>
22 February 1925 - Baden-Powell Opened the International Scout Chalet
</a>
</h5>
</div>
<div id="collapseNine" class="collapse" role="tabpanel" aria-labelledby="headingNine" data-parent="#accordion">
<div class="card-body">
<a href="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/kandersteg.jpeg" data-toggle="lightbox">
<img src="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/kandersteg.jpeg" class="img-fluid thumbnail">
</a>
<h5 class="description">Opened the International Scout Chalet in Kandersteg, Switzerland (now known as the
Kandersteg International Scout Centre)</h5>
</div>
</div>
</div>
<div class="card">
<div class="card-header" role="tab" id="headingTen">
<h5 class="mb-0">
<a class="collapsed" data-toggle="collapse" href="#collapseTen" role="button" aria-expanded="false" aria-controls="collapseTen">
<i class="fas fa-chevron-circle-right"></i>
22 February 1929 - Baden-Powell Created a Peer
</a>
</h5>
</div>
<div id="collapseTen" class="collapse" role="tabpanel" aria-labelledby="headingTen" data-parent="#accordion">
<div class="card-body">
<a href="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/bp-with-prince-of-wales.jpg" data-toggle="lightbox">
<img src="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/bp-with-prince-of-wales.jpg" class="img-fluid thumbnail">
</a>
<h5 class="description">Made Lord Baden-Powell, 1st Baron of Gilwell, by King George V</h5>
</div>
</div>
</div>
<div class="card">
<div class="card-header" role="tab" id="headingEleven">
<h5 class="mb-0">
<a class="collapsed" data-toggle="collapse" href="#collapseEleven" role="button" aria-expanded="false" aria-controls="collapseEleven">
<i class="fas fa-chevron-circle-right"></i>
19 February 1937 - Baden-Powell Built His African Home
</a>
</h5>
</div>
<div id="collapseEleven" class="collapse" role="tabpanel" aria-labelledby="headingEleven" data-parent="#accordion">
<div class="card-body">
<a href="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/paxtu.jpg" data-toggle="lightbox">
<img src="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/paxtu.jpg" class="img-fluid thumbnail">
</a>
<h5 class="description">Built and lived at his home, Paxtu cottage, in Nyeri, Kenya</h5>
</div>
</div>
</div>
<div class="card">
<div class="card-header" role="tab" id="headingTwelve">
<h5 class="mb-0">
<a class="collapsed" data-toggle="collapse" href="#collapseTwelve" role="button" aria-expanded="false" aria-controls="collapseTwelve">
<i class="fas fa-chevron-circle-right"></i>
08 January 1941 - Baden-Powell Death
</a>
</h5>
</div>
<div id="collapseTwelve" class="collapse" role="tabpanel" aria-labelledby="headingTwelve" data-parent="#accordion">
<div class="card-body">
<a href="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/BP-grave.jpg" data-toggle="lightbox">
<img src="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/BP-grave.jpg" class="img-fluid thumbnail">
</a>
<h5 class="description">Baden-Powell died on 8 January 1941 and is buried at St. Peter's Cemetery in Nyeri,
Kenya.
</h5>
</div>
</div>
</div>
</div>
</section>
<section class="quotes">
<h1>B-P's QUOTES</h1>
<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="carousel-item active">
<img class="d-block w-100" src="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/quote1.jpg" alt="Quote One">
</div>
<div class="carousel-item">
<img class="d-block w-100" src="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/quote2.jpg" alt="Quote Two">
</div>
<div class="carousel-item">
<img class="d-block w-100" src="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/quote3.jpg" alt="Quote Three">
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</section>
<section class="reference">
<p class="read-more">
If you have time, you should read more about this incredible human being on<br /><a href="https://www.scout.org/"
class="read-more" id="tribute-link" target="_blank">Scout Movement official site.</a>
</p>
</section>
</div>
</main>
<div class="footer">
<p>
Written & coded by <a href="mailto:[email protected]">Anna Szałkiewicz</a>. Copyright © 2018
</p>
</div>
</div>
<script src="app.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/js/bootstrap.min.js" integrity="sha384-a5N7Y/aK3qNeh15eJKGWxsqtnX/wWdSZSKp+81YjTmS15nvnvxKHuzaWwXHDli+4"
crossorigin="anonymous"></script>
<script src="https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/ekko-lightbox.js"></script>
<script>
$(document).on('click', '[data-toggle="lightbox"]', function (event) {
event.preventDefault();
$(this).ekkoLightbox();
});
</script>
</body>
</html>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background-color: #f2f2f2;
background-image: url('https://mywebgraphicdesign.com/tribute-page-robert-baden-powell/wosm-logo.jpg');
background-position: right;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: contain;
}
h1 {
font-family: 'Montserrat', sans-serif;
font-size: 3.5rem !important;
text-align: center;
padding-top: 50px;
color: #4A0026 !important;
padding-bottom: 60px;
}
h2 {
font-family: 'Montserrat', sans-serif;
text-align: center;
padding-bottom: 30px;
color: #4A0026 !important;
margin-top: -40px !important;
}
#img-div {
width: 100%;
}
img {
display: block;
max-width: 100%;
}
figure {
background-color: #fff;
font-size: 13px;
padding: 10px;
}
ul li {
list-style-type: none;
}
a {
color: #00450C !important;
}
.container {
width: 1000px;
background-color: #f0f0f0;
box-shadow: 5px 5px 5px #d2d2d2;
margin-top: 10px;
margin-bottom: 20px;
}
.mb-0 {
padding: 10px;
}
.heading-collapse {
display: inherit;
padding-left: 30px;
}
.thumbnail {
width: auto !important;
height: 150px !important;
margin: 10px 30px 25px 10px;
box-shadow: 5px 5px 5px #d2d2d2;
}
.img-fluid {
float: left !important;
}
.description {
margin-top: 20px;
margin-left: 20px;
font-size: 18px;
}
.reference {
background-color: #00450C;
margin-top: 20px;
}
.read-more {
font-family: 'Montserrat', sans-serif;
font-size: 26px;
text-align: center;
color: #fff !important;
padding: 50px;
}
.footer {
text-align: center;
padding: 30px;
border-top: solid 1px #000;
}
Also see: Tab Triggers