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

              
                <link rel="stylesheet" href="first.css">
<html>
<title>LCW</title>
<nav>
  <a href="https://bwfbadminton.com/player/50152/lee-chong-wei" target="_blank">Profile</a>
  <a href="https://en.wikipedia.org/wiki/Lee_Chong_Wei" target="_blank">Wikipedia</a>
  <a href="https://en.wikipedia.org/wiki/Lin_Dan" target="_blank">Rival</a></nav>
<div class="green-background">
<h1 class="text">Lee Chong Wei</h1><hr>
<img class="img" src="https://thebrandlaureateworld.com/wp-content/uploads/2018/11/lcw.jpg" alt="Lee Chong Wei">
<blockquote class="img-caption">"if we dare to win, we should also dare to lose"</blockquote>
</div >
<div class="light-green-background">
<h2>BIOGRAPHY</h2>
<ul class="ul">
<li>Datuk Lee Chong Wei DB PJN AMN DCSM DSPN is a former Malaysian badminton player. As a singles player, Lee was ranked first worldwide for 349 weeks, including a 199-week streak from 21 August 2008 to 14 June 2012.</li>
<li>Born: 21 October 1982 (age 38 years), Bagan Serai, Malaysia</li>
<li>Career end: 13 June 2019</li>
<li>Height: 1.72 m</li>
<li>Spouse: Wong Mew Choo (m. 2012)
Retired: 13 June 2019</li>
</ul>
<h3 class="achievements">Achievements</h3>
<p class="achieve">This is a list of the main career statistics of Malaysian professional badminton player, Lee Chong Wei. To date, Lee has won a total of sixty-nine BWF singles titles including a record 42 BWF Super Series singles titles, and a record 4 BWF Super Series Finals. He is the first men's singles player to have won every BWF Super Series Premier title. Lee is also a triple Silver Medalist in men's singles, having reached the finals at the 2008 Beijing Olympics, 2012 London Olympics and 2016 Rio Olympics. He is also a quadruple Silver Medalist at the BWF World Championships. However, he was stripped of his achievement as the runner-up at the 2014 BWF World Championships due to doping violations. Following that matter, he served an 8-month suspension from international competitions.
</p><br><br>
<footer id="footer">For more information click <a href="http://archivepyc.nbcolympics.com/athletes/lee-chong-wei/262444" target="_blank">here</a></footer>
</div>
</html>
              
            
!

CSS

              
                nav {
  background-color: #c1ff33;
  position: sticky;
  top: 0;
  padding: 0px 15px 25px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-block-start: 0em;
  margin-block-end: 0em;
  font-size: 2.2em;
}
.text {
  display: flex;
  justify-content: center;

}
.img {
  max-width: 100%;
  display: block;
  height: auto;
  margin: 0 auto;

}
hr {
  margin-left: 500px;
  margin-right: 500px;
  max-width: 500px;
  max-height: auto;
}
.img-caption {
  display: flex;
  justify-content: center;
  font-size: 18;
  font-family: arial;
}
h2 {
  display: flex;
  justify-content: center;
}
.ul {
  font-size: 20;

}
.green-background {
  background-color: #71951E;
  padding: 20px 10px 10px;
  max-width: 100%;
  height: auto;
}
@media (max-height: 100) {
  .green-background {
    padding: 20px 10px 20px;
  }
}
.light-green-background {
  background-color: #81a039;
  padding: 10px 0px 20px;
}
.achievements {
  display: flex;
  justify-content: center;
  font-size: 25;

}
.achieve {
  font-size: 18;
}
#footer {
  font-size: 20;
  font-family: monospace;
}
a:hover {
  color: blue;
}
.img:hover {
  width: 350px;
  height: auto;
}

              
            
!

JS

              
                
              
            
!
999px

Console