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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <!-- applying fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,400i,900" rel="stylesheet">
<!-- adjusting width of the page for different sizes of screens -->
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!-- body code -->
<main class="container" role="main">
      <section>
        <div class="row">
          <div class="col-xs-1"></div>
          <div class="col-xs-5 box-text text-left">
            <h1 class="bottom-line">Bertrand Russell</h1>
            <h4>1872 &mdash; 1970</h4>
            <p>British philosopher, logician, mathematician,
historian, writer, social critic, political activist
and Nobel laureate.</p>
          </div>
          <div class="img-mob-properties col-xs-6">
            <img class="img-responsive" src="https://res.cloudinary.com/belodpav/image/upload/v1474901422/freecodecamp/first_project(Tribute%20page)/img01.jpg" alt="Bertrand-Russell">
          </div>

        </div>
      </section>
      <section class="section-space section-bg">
        <div class="row">
          <div class="col-xs-1"></div>
          <div class="col-xs-10">
            <h2 class="bottom-line">Biography</h2>
            <p class="">British philosopher, logician, mathematician, historian, writer, social critic, political activist
              and Nobel laureate. At various points in his life he considered himself a liberal, a socialist,
               and a pacifist, but he also admitted that he had "never been any of these things, in any profound sense".
               He was born in Monmouthshire into one of the most prominent aristocratic families in the United Kingdom.</p>
          </div>
          <div class="col-xs-1"></div>
         </div>
         <figure class="">
            <img class="img-responsive" src="https://res.cloudinary.com/belodpav/image/upload/v1474901422/freecodecamp/first_project(Tribute%20page)/img02.jpg" alt="Chess game">
            <figcaption class="text-center">Bertrand Russell playing chess with his son (1940)</figcaption>
         </figure>
        <div class="row">
          <div class="col-xs-1"></div>
          <div class="col-xs-10">
            <p class="">In the early 20th century, Russell led the British "revolt against idealixs".
              He is considered one of the founders of analytic philosophy along with his predecessor Gottlob Frege,
               colleague G. E. Moore, and protégé Ludwig Wittgenstein. He is widely held to be one of the 20th
                century's premier logicians.With A. N. Whitehead he wrote Principia Mathematica, an attempt
                 to create a logical basis for mathematics. His philosophical essay "On Denoting" has been
                  considered a "paradigm of philosophy". His work has had a considerable influence on mathematics,
                   logic, set theory, linguistics, artificial intelligence, cognitive science, computer science
                    (see type theory and type system),
               and philosophy, especially the philosophy of language, epistemology, and metaphysics.</p>
          </div>
		  <div class="col-xs-1"></div>
        </div>
      </section>
      <section class="section-space">
         <div class="row">
			<div class="col-xs-1"></div>
			<div class="col-xs-10">
				<h2 class="bottom-line">Quotes</h2>
			</div>
			<div class="col-xs-1"></div>
		</div>
        <ul class="text-center">
            <li class="row">
              <div class="col-xs-1"></div>
              <div class="quote col-xs-10">
                <p class="quote-text">“The good life is one inspired by love and guided by knowledge”.
                </p>
                  <p class="quote-author">- Bertrand Russell</p>
              </div>
              <div class="col-xs-1"></div>
            </li>
            <li class="row">
              <div class="col-xs-1"></div>
              <div class="quote col-xs-10">
                <p class="quote-text">“Man needs, for his happiness, not only the enjoyment of this or that,
                   but hope and enterprise and change.”.
                </p>
                  <p class="quote-author">- Bertrand Russell</p>
              </div>
              <div class="col-xs-1"></div>
            </li>
        </ul>
      </section>
      <p class="ref">If you want to know of about Bertrand Russell biography more,
    follow to <a href="https://en.wikipedia.org/wiki/Bertrand_Russell" target="_blank">Wikipedia</a>.</p>

    </main>
    <footer>
      <small>Designed by <a href="https://twitter.com/belodpav" target="_blank">Pavel Belodurin</a></small>
    </footer>
              
            
!

CSS

              
                /* Basic */

html, body {
  font: 300 16px/28px "Roboto", Arial, sans-serif !important;
  letter-spacing: .06em;
  background-color: #f6fafa;
}
main {
  background-color: #fff;
  border-radius: 4px;
  margin-top: 30px;
  padding: 0;
}
.container {
  padding: 0;
  box-shadow: 0 3px 3px 0 rgba(0, 0, 0, .15);
}
a {
  color: inherit;
  text-decoration: underline;
}

/* Users styles */
.bottom-line {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 2px solid #00b0eb;
}
h1, h2, h3, h4 {
  margin: 0;
  padding: 0;
}
h1 {
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 32px;
}
h2 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 20px;
}
p {
  padding-bottom: 40px;
}
h4 {
  font-size: 14px;
  font-weight: 300;
  margin: 0;
  margin-bottom: 20px;
}

.section-bg {
  background-color: #f6f6f6;
}
/* Introduction(First) section */
.box-text p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 28px;
}
@media (min-width: 768px) {
  .box-text {
    padding : 45px 15px;
  }
}
@media (min-width: 992px) {
  .box-text {
    padding: 100px 15px;
  }
}
@media (min-width: 1200px) {
  .box-text {
    padding: 120px 15px;
  }
}

/* images */
figure {
  background-color: #fff;
  margin-bottom: 40px;
}
figcaption {
  padding: 20px 0;
  font-size: 14px;
  font-style: italic;
}
.section-space {
  padding: 60px 0;
}
/* Quotes section */
ul {
  padding: 0;
}
li {
  list-style: none;
}

.quote {
  background-color: #f6f6f6;
  border-radius: 4px;
  padding: 30px;
  margin-bottom: 25px;
}
.quote-text {
    text-align: left;
    margin-bottom: 15px;
	padding-bottom: 0;
}
.quote-author {
  text-align: right;
  margin: 0;
  padding: 0;
  font-style: italic;
}
/* Reference section */
.ref {
  font-weight: 300;
  text-align: center;
}
/* Footer */
footer {
  text-align: center;
  margin: 40px 0;
}
small {
  font-size: 14px;
}
/* mobile version with screens <768px */
@media (max-width: 767px) {
  main, footer, .box-text {
    text-align: center;
  }
  .container {
    width: 100%;
  }
  main {
    margin-top: 0;
  }
  .row {
    width: 100%;
    margin: 0;
  }
  .box-text {
    display: block;
    width: 100% !important;
    padding: 30px 53px 40px 53px;
  }
  figcaption {
    text-align: center;
    padding-left: 30px;
    padding-right: 30px;
  }
.section-bg p {
    text-align: left;
  }
  .img-mob-properties {
    position: none;
    float: none;
    display: block;
    padding: 0;
    width: 60%;
    margin: 0 15% 0 25%;
  }
  .ref {
    padding-left: 30px;
    padding-right: 30px;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console