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

              
                
<!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>Document</title>
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,500;1,300&display=swap" rel="stylesheet">
  <link rel="stylesheet" href="main.css">
</head>
<body>
  <section id="hero">
    <div class="container">
      <div class="info">
        <h1 id="title">Bruce Lee</h1>
        <h2>Tribute page</h2>
        <blockquote cite="https://medium.com/ketans-blog/be-like-water-a-toastmasters-speech-98c20506d5ca">
        <p>Empty your mind, be formless. Shapeless, like water. If you put water into a cup, it becomes the cup. You put water into a bottle and it becomes the bottle. You put it in a teapot, it becomes the teapot. Now, water can flow or it can crash. Be water, my friend.</p></blockquote>
      </div>
    </div>
  </section>
  <main id="main">
    <div class="bio">
      <h2>Biograpgy</h2>
        <div id="bio-c">
          <div class="bio-text" id="tribute-info">
            <p>On November 27, 1940, the actor and martial-arts expert Bruce Lee is born in San Francisco, California. In his all-too-brief career, Lee became a film star in Asia and, later, a pop-culture icon in America.</p>
            <p>Lee was born while his father, a Chinese opera star, was on tour in America. The Lee family moved back to Hong Kong in 1941. Growing up, Lee was a child actor who appeared in some 20 Chinese films; he also studied dancing and trained in the Wing Chun style of gung fu (also known as kung fu). In 1959, Lee returned to America, where he eventually attended the University of Washington and opened a martial-arts school in Seattle. In 1964, he married Linda Emery, who in 1965 gave birth to Brandon Lee, the first of the couple’s two children. In 1966, the Lees relocated to Los Angeles and Bruce appeared on the television program The Green Hornet (1966-1967), playing the Hornet’s acrobatic sidekick, Kato. Lee also appeared in karate tournaments around the United States and continued to teach martial arts to private clients, including the actor Steve McQueen.</p>
            <p>In search of better acting roles than Hollywood was offering, Lee returned to Hong Kong in the early 1970s. He successfully established himself as a star in Asia with the action movies The Big Boss (1971) and The Way of the Dragon (1972), which he wrote, directed and starred in. Lee’s next film, Enter the Dragon, was released in the United States by Hollywood studio Warner Brothers in August 1973. Tragically... <a href="https://www.history.com/this-day-in-history/bruce-lee-born" id="tribute-link" target="_blank">Continue reading here</a></p>
          </div>
          <div id="img-div">
              <a id="a" href="https://www.youtube.com/watch?v=kXwOU5HzTZQ"><img src="https://i.pinimg.com/originals/4b/23/80/4b2380b5d1a2bcddaef26ef6bad46377.jpg" alt="Photo of Bruce Lee's one inch punch" id="image"></a>
              <figcaption id="img-caption">One inch punch</figcaption>
          </div>
        </div>
      </div>
  </main>
  <footer>
      <p id="made-by">Made by Vladimir Jankauskas</p>
  </footer>
</body>
</html>

              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
}

a {
  text-decoration: underline;
  color: grey;
}
/* Start of hero section */
#hero {
  width: 100%;
  height: 95vh;
  background:linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(https://wallpaper-house.com/data/out/10/wallpaper2you_445154.jpg);
  color: white;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center left ;
}

.container {
  width: 100%;
  height: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.container .info {
  margin-left: 2%;
  margin-bottom: 2%;
}

.container .info h1 {
  font-size: 3rem;
  margin-bottom: 0.6rem;
}

.container .info h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem
}

.container .info p{
  font-size: 1.3rem;
  max-width: 50%;
  font-weight: 300;
  font-style: italic;
}
/* End of hero section */

#main {
  background-color: rgba(0, 0, 0, 1);
  color: white;
  width: 100%;
  height: 100%;
}



.bio h2 {
  font-size: 2rem;
  text-align: center;
  padding-top: 3%
}
#bio-c {
  width: 100%;
  height: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

#img-div{
  text-align: center;
  position: relative;

}

.bio-text {
  font-size: 1.5rem;
  max-width: 65%;
  margin-left: 2%;
  margin-top: 3%;
}

.bio-text p {
  margin-bottom: 5%;
}

img {
  height: auto;
  width: 80%;
  max-width: 300px;
  max-height: auto;
  display: block;
  margin: 0px auto;
}

/* Start of footer*/

footer {
  background-color: rgba(0, 0, 0, 1);
  width: 100%;
  height: 100%;
  margin: 0 auto;

}

#made-by {
  padding: 5% 0px 5% 0px;
  color: white;
  font-weight: 300;
  margin-left: 2%;
  text-align: center;
}
/* End of footer*/

              
            
!

JS

              
                
              
            
!
999px

Console