Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <p>The family of Marcus Cato, it is said, was of Tusculan origin, though he lived, previous to his career as soldier and statesman, on an inherited estate in the country of the Sabines. His ancestors commonly passed for men of no note whatever, but Cato himself extols his father, Marcus, as a brave man and good soldier. He also says that his grandfather, Cato, often won prizes for soldierly valour, and received from the state treasury, because of his bravery, the price of five horses which had been killed under him in battle. The Romans used to call men who had no family distinction, but were coming into public notice through their own achievements, "new men," and such they called Cato. But he himself used to say that as far as office and distinction went, he was indeed new, but having regard to ancestral deeds of valour, he was oldest of the old. His third name was not Cato at first, but Priscus. Afterwards he got the surname of Cato for his great abilities. The Romans call a man who is wise and prudent, catus.
<p>As for his outward appearance, he had reddish hair, and keen grey eyes. His bodily habit, since he was addicted from the very first to labour with his own hands, a temperate mode of life, and military duties, was very serviceable, and disposed alike to vigour and health. His discourse, — a second body, as it were, and, for the use of a man who would live neither obscurely nor idly, an instrument with which to perform not only necessary, but also high and noble services, — this he developed and perfected in the villages and towns about Rome, where he served as advocate for all who needed him, and got the reputation of being, first a zealous pleader, and then a capable orator. Thenceforth the weight and dignity of his character revealed themselves more and more to those who had dealings with him; they saw that he was bound to be a man of great affairs, and have a leading place in the state. For he not only gave his services in legal contests without fee of any sort, as it would seem, but did not appear to cherish even the repute won in such contests as his chief ambition. Nay, he was far more desirous of high repute in battles and campaigns against the enemy, and while he was yet a mere stripling, had his breast covered with honourable wounds. He says himself that he made his first campaign when he was seventeen years old, at the time when Hannibal was consuming Italy with the flames of his successes.
<p>In battle, he showed himself effective of hand, sure and steadfast of foot, and of a fierce countenance. With threatening speech and harsh cries he would advance upon the foe, for he rightly thought, and tried to show others, that often-times such action terrifies the enemy more than the sword. On the march, he carried his own armour on foot, while a single attendant followed in charge of his camp utensils. With this man, it is said, he was never wroth, and never scolded him when he served up a meal, nay, he actually took hold himself and assisted in most of such preparations, provided he was free from his military duties. Water was what he drank on his campaigns, except that once in a while, in a raging thirst, he would call for vinegar, or, when his strength was failing, would add a little wine.
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Slabo+27px);

$screen-large: 1500px;
$screen-med: 750px;
$screen-small: 420px;

body { 
  font-family: 'Slabo 27px', serif; 
margin: 2rem; 
  font-size: 1.3rem;
  line-height: 1.3;
  color: #fff;
  background: #333;
  @media (max-width: $screen-med) { 
    background: #000;
    line-height: 1.4;
   }
}
              
            
!

JS

              
                
              
            
!
999px

Console