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

              
                <link href="https://fonts.googleapis.com/css?family=Arvo" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">

<div class="backdrop">
</div>
<div class="container">
<h1>Mark<br>Evans</h1>
<h2>About Me</h2>
  <div>
<p>I'm a traveller, linguist, enthusiast of life who currently resides in <a href="https://www.lonelyplanet.com/vietnam">Vietnam</a>. I made a major career move in late in 2017 and left a very good corporate job on a sabbatical to follow a dream I'd had for a long time: becoming a Web Creator.</p>
<p>Since then, I've been actively learning HTML, CSS, JavaScript and also a little bit of <a href="https://en.wikipedia.org/wiki/Scalable_Vector_Graphics">SVG</a>. Each day is a new adventure of discovery and exploration. To keep things fresh, I'm also working on some long-delayed fitness goals in strength, endurance, and particularly in <a href="https://en.wikipedia.org/wiki/Muay_Thai">Muay Thai</a>. When I'm not feeding my brain - but killing my eyes - in front of a computer, I can usually be found in the ring trying not to get knocked out, and maybe sometimes actually doing the knocking out!</p>
<p>My most recent projects are a site for my old dive instructor who also recently took the plunge into freelance work and a hotel website for a friend of his. I try to ensure each project stretches my limits and gives me something new to learn. At 35, one things I've learned is it is never to late to learn that you are a <a href="https://www.ted.com/talks/emilie_wapnick_why_some_of_us_don_t_have_one_true_calling">multipotentialite</a>, which is a new and more appealing way of saying you're a jack of all trades. Plenty of time left to become a master of at least a few of those trades. The curiosity and perseverance to keep learning is the greatest wealth you can have in the new millenium, and the best way to learn is to experiment. Fail once, fail twice, fail again. "Fail early, fail hard and fail often" as <a href="https://www.youtube.com/watch?v=r1Gy5YjBMvk">Will Smith</a> aptly put it.</p>
<p>My next travel destinations, two countries I've never been to, are <a href="https://www.lonelyplanet.com/laos">Laos</a> and <a href="https://www.lonelyplanet.com/taiwan">Taiwan</a>. Two very different places that are bound to inspire. After the former, I'll have been at least once to almost all countries in Southeast Asia. <a href="https://www.lonelyplanet.com/vietnam">Vietnam</a> is the country I currently call home. That leaves only once country left to visit: <a href="https://www.lonelyplanet.com/myanmar-burma">Myanmar</a>. There's plenty of exploration left to do in all of them though. I recently toured through the south of the <a href="https://www.amazon.com/Vietnam-Rising-Dragon-Bill-Hayton-ebook/dp/B004UDV0XY">Rising Dragon</a> on motorbike and will without a doubt be booking another trip on the back of my <a href="https://en.wikipedia.org/wiki/Yamaha_FZ150i">Yamaha Fz150i</a> to see the north of this incredible country.
  </div>
</div>

              
            
!

CSS

              
                html {
  margin: 0;
  border: 0;
  padding: 0;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  /* padding-top: 100px; */
  /* padding-bottom: 100px; */
  /*background-image: linear-gradient(45deg, #0288D1, #FF6F00); */
  background-image: radial-gradient(circle at 0%, #0288D1, #0288D1 25%, rgba(237, 120, 17, 0.51) 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  font-family: 'Lato','Open Sans', sans-serif;
  margin: 5%;
}

.backdrop {
  background-color: #01579B;
  opacity: 0.25;
  height: 300px;
  width: 100%;
  position: absolute;
  top: 120px;
  left: 0;
  z-index: -1;
  transform: skewY(10deg);
  
}

.container {
  top: 0;
  background-color: rgba(255,255,255,0.2);
  padding: 70px 10px;
  margin-top: 0px;
  transform: skewY(-5deg);
}

@media screen and (min-width: 1024px) {
  body {
    margin: 0 20%;
    width: 60%;
  }
  .container {
    position: relative;
    padding: 120px 100px;
  }
}

h1 {
  font-size: 6em;
  border-bottom: dashed 1px #FFF;
  padding-bottom: 0px;
  color: #96b4c5;
  /*display: table-cell;*/
  transform: rotate(-5deg);
  background-color: rgba(1,87,155,0.25);
  border-left: solid 100px rgba(1,87,155,0.4);
  line-height: 0.7em;
  /* border-right: solid 100px rgba(1,87,155,0.4); */
}

h1:first-letter {
  font-family: 'Arvo';
  font-size: 160%;
  color: rgba(1,87,155,0.9);
  line-height: 0.5em;
  font-weight: bold;
}

@media screen and (max-width: 600px) {
  h1 {
    border-left: solid 10px rgba(0,0,0,0.4);
  }
}


h2 {
  font-size: 2em;
  transform: rotate(-5deg);
  margin-bottom: 3em;
}

p {
  font-family: 'Arvo', serif;
  line-height: 2em;
}

p:first-child:first-letter {
  color: rgba(0,0,0,0.6);
  float: left;
  font-size: 50px;
  line-height: 50px;
  padding-top: 6px;
  padding-right: 5px;
}

a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  border-bottom: dotted 4px #01579B;
  padding-bottom: 2px;
  background-color: rgba(0,0,0,0.2);
}

/* How to get CSS to work for background

https://stackoverflow.com/questions/2869212/css3-gradient-background-set-on-body-doesnt-stretch-but-instead-repeats

*/
              
            
!

JS

              
                
              
            
!
999px

Console