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

              
                <div class ="container-fluid text-center">
     <h1>Scriptures for the Soul</h1>
     <p>The Bible is a collection of sacred texts or scriptures that Jews and Christians consider to be <br/> a product of divine inspiration and a record of the relationship between God and humans.</p>
<img src="https://e7.pngegg.com/pngimages/600/90/png-clipart-person-holding-holy-bible-signs-and-wonders-miracle-god-holy-spirit-apostle-holy-bible-love-purple.png"/>
<br/>

<div wrapper id="quote-box">
        <div id="text">I can do all things through Christ which strengtheneth me.</div>
<div id="author">-Philippians 4:13</div>
  
 <button><a target="_blank" id= "tweet-quote" href="twitter.com/intent/tweet" className="button">Tweet this Quote</a></button>
   
  <button id="new-quote" className="button">New Quote</button>
  
</div>
 
              
            
!

CSS

              
                body{
  background-color:#b2ffff;
  text-align: center;
   
}

h1{
  color:saddlebrown;
  font-family:Papyrus; 
  font-size:50px
}

p{
  color:black;
  font-family:"Arial Narrow";
  font-style:italic;
  font-size:30px;
}

img{
padding:25px;
margin-left: auto;
margin-right: auto;
max-width: 500px;
height: auto;
}
      
button{
background-color:#ff7f50;
font-family:"Arial Black";
padding:10px;
border-radius:10px;
cursor:pointer;
}

#quote-box{
background-color:saddlebrown;
width:50%;
margin-left:auto;
margin-right:auto;
Border-radius:80px;
border:10px solid coral;
margin-top:20px;
padding:100px;
height:auto;
color:yellow;
}

#quote-box{
 font-size:30px;
 font-family:"Papyrus";
}

#author{
 font-size:20px;
 font-family:"Arial";
 font-style:italic;
}

#new-quote{
 margin-top:60px;
}

#new-quote:hover{
background-color: green;
}
              
            
!

JS

              
                import $ from "https://cdn.skypack.dev/jquery@3.6.0";
$(document).ready(function(){
      function getQuote(){
        var quotes =[{
          quote:"I can do all things through Christ which strengtheneth me.",
          author:"-Philippians 4:13"
        }, {
          quote:"For I know the thoughts that I think toward you, saith the Lord, thoughts of peace, and not of evil, to give you an expected end.",
          author:"-Jeremiah 29:11"
        }, {
          quote:"Behold, his soul is puffed up; it is not upright within him, but the righteous shall live by his faith.",
          author:"-Habakkuk 2:4"
        }, {
          quote:"For I am not ashamed of the gospel, because it is the power of God that brings salvation to everyone who believes: first to the Jew, then to the Gentile.",
          author:"-Romans 1:16"
        },];

  var sourceLength = quotes.length;
        var randomNumber = Math.floor(Math.random()* sourceLength);
        
        var newQuoteText = quotes[randomNumber].quote;
          var newQuoteName = quotes[randomNumber].author;
        $("#text").text(newQuoteText);
      $("#author").text(newQuoteName);



      }
      getQuote();//calls function on first load//

      $("#new-quote").click(getQuote);
    }
    
    );      
              
            
!
999px

Console