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

              
                  <div id="main">
    <h1 id="title">Gichin Funakoshi</h1>
    <div>
      The Father of Modern Karate
    </div>
    <div id="img-div">
      <img id="image"
           src="https://49.media.tumblr.com/tumblr_mefibiYojS1qfkvlso1_400.gif"> <!--  <img src="images/GichinFunakoshi.jpg" alt="Gichin Funakoshi" style="width:249px;height:257px;"> -->
      <div id="img-caption">
        Think of everyday life as karate training
      </div><!--img-caption-->
    </div><!--image-div-->
    <div id="tribute-info">
      <ul>
        <h3 id="headline">Timeline of Gichin Funakoshi's life:</h3>
        <li><strong>1868</strong> - born in Shuri, Okinawa</li>
        <li><strong>1888</strong> - took a job as an assistant schoolteacher at the age of 21</li>
        <li><strong>1917</strong> - gave the first public demonstration of karate</li>
        <li><strong>1901</strong> - karate practice was legalized in Okinawa, and its study became mandatory in middle schools. Securing permission from Azato and Itosu, Funakoshi announced that he would begin formally teaching karate.</li>
        <li><strong>1921</strong> - had the honour of demonstrating the art of "Okinawan te" to then Crown Prince Hirohito during a visit he made to Okinawa.</li>
        <li><strong>1922</strong> - traveled to Tokyo where he had been invited to present his art of Tode at the First National Athletic Exhibition in Tokyo, which had been organized by the Ministry of Education. After the demonstration he was
        strongly urged by several eminent groups and individuals to remain in Japan, and indeed he never did return to live in Okinawa.</li>
        <li><strong>1924</strong> - had started to introduce karate to several of the local universities, first at Keio, followed by Chuo, Tokyo, and Waseda to name but a few. It was through these universities that he was able to reach a much larger
        audience and this contributed greatly to the growing popularity of karate.</li>
        <li><strong>1936</strong> - Master Funakoshi was finally able to establish the Shoto-kan dojo in 1936, a great landmark in the history of karate. Funakoshi sensei was not only a genius in martial arts, but he was also a literary talent, and
        he signed all of his works "Shoto" which was his pen name. Hence, the dojo where he taught came to be known as "Shoto's school" or "Shoto's kan" which was ultimately adopted as the official name for his style of karate. Funakoshi sensei had
        combined the techniques and katas of the two major Okinawan styles to form his own style of karate, as a result, today Shotokan karate-do includes the powerful techniques of the Shorei style of karate, as well as the lighter more flexible
        movements of the Shorin style of karate.</li>
        <li><strong>1957</strong> - passed away the age of 88</li>
      </ul>
      <div id="tribute-quote">
        <a href="http://www.azquotes.com/quote/1426476"
             target="_blank"
             title="Gichin Funakoshi quote"><img alt="In battle, do not think that you have to win. Think rather that you do not have to lose. - Gichin Funakoshi"
             src="http://www.azquotes.com/picture-quotes/quote-in-battle-do-not-think-that-you-have-to-win-think-rather-that-you-do-not-have-to-lose-gichin-funakoshi-142-64-76.jpg"></a><br>
        <br>
        <a class="btn btn-info"
             href="http://www.azquotes.com/quote/1426476"
             role="button"
             target="_blank">More Quotes from Gichin Funakoshi</a>
      </div><!--tribute-quote-->
      <blockquote>
        <h3>To learn more about Master Gichin Funakoshi visit his <a href="https://en.wikipedia.org/wiki/Gichin_Funakoshi"
           id="tribute-link"
           target="_blank">Wikipedia entry</a></h3>
      </blockquote>
    </div><!--tribute-info-->
  </div><!--main-->
              
            
!

CSS

              
                html,body{
    font-family:"Trebuchet MS", Helvetica, sans-serif;
    text-align:center;
    min-width:260px;
    color:#333;
  }
  #main{
    margin:30px auto;
    padding:15px;
    border:0px solid;
    border-radius:5px;
    background:#eee;
  }
  img{
    max-width: 100%; 
    display: block; 
    height: auto;
    margin: auto;
  }
  #img-div{
    margin:-5px;
    margin-top:20px;
    width:100%;
    border:5px solid white;
    background:white;
  }
  #img-caption{
    margin:15px;
  }
  #headline{
    margin-top:50px;
    text-align:left;
  }
  ul{
    max-width:550px;
    margin:0 auto;
    text-align:left;
  }
  li{
    margin: 10px;
  }
  blockquote{
    font-style: italic;
  }
              
            
!

JS

              
                // coded by @ChaituVR
const projectName = 'tribute-page';
localStorage.setItem('example_project', 'Tribute Page');
              
            
!
999px

Console