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

              
                <html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<div class="thumbnail">
<div id = "leftAlign">
<h1 class="text-primary">Victor Frankl</h1>
<p class="text-primary top">Victor Frankl was a Holocaust survivor.  This was no mean feat in itself it has to be said.  As friends and family were dying around him he used this experience to develop and fine tune self-analytical skills. He tried to make sense of what was happening within his own mind under the most difficult conditions imaginable. After the war, Victor used these analytical skills as part of a process "Logotherapy" to counsel those who were regarded as suicide risks.  He had great success in guiding people to regain control of their own lives and emotions by getting them to apply changes to their own internal thought processes.
</p>
  <h4 class="text-primary">Theory and practice - a personal life changing opportunity</h4>
<p class="text-primary top">
Professor Frankl suggested that <span  class=target4>no-one</span> other than yourself can control your emotions.  This really made a huge impact on me.  Whenever I am particularly troubled by anything and perhaps verging on despair I consider this and just think "I am happy!".  That is at least a start in changing your attitude.  It is strange to put any "out of the box" challenge like that to a thought process but it helps.
</p>  
<p class="text-primary top">
I remind myself that the temporary adversity I am facing is miniscule compared to the difficulties many people face on a day to day basis.  It is amazing when you realise that <span  class=target4>no-one can make you unhappy but yourself.</span> You can simply decide to be happy and no external circumstances can affect your decision. Obviously you can change your decision but it is your decision that impacts on your emotions. It is therefore critical to appreciate this - so it is not helpful to blame others for how you feel.
</p>
<a href="http://www.rjgeib.com/thoughts/frankl/frankl.html">
<img class ="image1" border="0" alt="Viktor Frankl information" src="http://www.rjgeib.com/thoughts/frankl/entrance.jpg">
</a>
<div class="caption text-center">
Click above picture to learn more about Victor Frankl
</div>
 <br>
<div class="text-primary top">
 <p>I selected <span class=target4>Viktor Frankl </span>to be the subject of this simple<span class=target4> tribute page</span> as part of a <span class=target4>code-academy project.</span>  There are two main reasons for this choice:<p>
          <ul><br/>
            <div class="text-primary top">
            <li>
              <span class=target4> First</span> the Holocaust Memorial Day is on 27 January each year ....and this is close enough today as I write.  It is also a time when the executive orders being issued in the USA are prompting people to compare the two scenarios.
            </li>
            </div>
            <div class="text-primary top">
                        <li>
          <span class=target4>Second </span>I am surprised and disappointed that his work does not have as wide an audience as it should. Nowadays there are great pressures on people to fit particular norms or suffer the consequences of standing out and be bullied.  Many people cope well with issues they face or do not care. Many others clearly view suicide as the only way out.  Perhaps Victor's ideas should be shared more widely as a matter of course rather than as a result of a lucky internet search. This could have a significant impact on reducing suicide rates.
            </li>
            </div>
          </ul>
      </div>
    </div>
  </div>
</body>

              
            
!

CSS

              
                $blue: #a3d5d3;
#leftAlign {
  margin-left:15px;
}
h1{
    background-color: transparent;
}
h4{
    display: inline-block;
    padding:5px;
    font-weight:bold;
    margin-left:15px;
    max-width: 1680px;
    position: relative;
    background-color: transparent;
}
.top{
    display: inline-block;
    font-size:14px;
    padding:5px;
    margin-left:15px;
    max-width: 1680px;
    position: relative;
    background-color: transparent;
}

body {
  padding:10px;
  background-color: transparent;
}
.image1 {
    background: #eee;
    display: inline-block;
    position: relative;
    width:600px;
    height:400px;
    padding:10px;
}
.bottom{
  
}
              
            
!

JS

              
                document.getElementsByTagName("h1")[0].style.fontSize = "80px";
document.getElementsByTagName("p")[0].style.fontSize = "14px";
$("#target1").css("color", "red");
$("#target2").css("color", "blue");
$("#target3").css("color", "blue");
$(".target4").css("color", "red");
$(".target2").addClass("animated shake");
              
            
!
999px

Console