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

              
                <html><head></head>
<body>
<div id="header">
  <a href="/" title="Smooth Back to Top Pure CSS Only">CodingT</a>
</div>

Lorem ipsum dolor sit amet, est cu diam eius salutandi, per dicam repudiandae et. Possit facilis menandri pro ex. Ea cum volumus mediocritatem. An quo vide summo, dolores insolens senserit ex mei, soluta delenit et mea. In mediocrem consequuntur nam, has cibo iudico constituam ex.<br/>
<br/>
Cum dicunt everti facilisi ut, prima sadipscing temporibus sed ea. Mea cu nisl aeterno eleifend. Eum an minim verterem, id quo tation molestie. In duo graeci fuisset temporibus.<br/>
<br/>
Id eum ullum accusamus referrentur. Docendi consulatu sed ad. Eam mutat numquam cu, simul timeam disputando no mei, vix id detraxit expetenda cotidieque. Has quem quod fierent ne. Mel iracundia appellantur ad, ad mel mutat solum accusamus.<br/>
<br/>
At quis inimicus est, has sonet vulputate ut. Per sonet nullam an, et qui omnesque inimicus moderatius. Dolore dicunt ut ius, vim in tota saperet mandamus. Omnis similique ex per, error electram ei eum.<br/>
<br/>
Suscipit appareat mel ad. Eos semper sapientem complectitur ad, solum falli debitis per no. In sit saepe aeterno phaedrum, has vide adipiscing ea. Minim nullam ignota et has. Eam meis utroque an.<br/>
<br/>
Lorem ipsum is a pseudo-Latin text used in web design, typography, layout, and printing in place of English to emphasise design elements over content. It's also called placeholder (or filler) text. It's a convenient tool for mock-ups. It helps to outline the visual elements of a document or presentation, eg typography, font, or layout. Lorem ipsum is mostly a part of a Latin text by the classical author and philosopher Cicero. Its words and letters have been changed by addition or removal, so to deliberately render its content nonsensical; it's not genuine, correct, or comprehensible Latin anymore. While lorem ipsum's still resembles classical Latin, it actually has no meaning whatsoever. As Cicero's text doesn't contain the letters K, W, or Z, alien to latin, these, and others are often inserted randomly to mimic the typographic appearence of European languages, as are digraphs not to be found in the original.<br/>
<br/>
In a professional context it often happens that private or corporate clients corder a publication to be made and presented with the actual content still not being ready. Think of a news blog that's filled with content hourly on the day of going live. However, reviewers tend to be distracted by comprehensible content, say, a random text copied from a newspaper or the internet. The are likely to focus on the text, disregarding the layout and its elements. Besides, random text risks to be unintendedly humorous or offensive, an unacceptable risk in corporate environments. Lorem ipsum and its many variants have been employed since the early 1960ies, and quite likely since the sixteenth century.<br/>
<br/>
<b>Lorem Ipsum: common examples</b>
layout based on Lorem Ipsum Most of its text is made up from sections 1.10.32–3 of Cicero's De finibus bonorum et malorum (On the Boundaries of Goods and Evils; finibus may also be translated as purposes). Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit is the first known version ("Neither is there anyone who loves grief itself since it is grief and thus wants to obtain it"). It was found by Richard McClintock, a philologist, director of publications at Hampden-Sydney College in Virginia; he searched for citings of consectetur in classical Latin literature, a term of remarkably low frequency in that literary corpus.<br/>
<br/>
Cicero famously orated against his political opponent Lucius Sergius Catilina. Occasionally the first Oration against Catiline is taken for type specimens: Quo usque tandem abutere, Catilina, patientia nostra? Quam diu etiam furor iste tuus nos eludet? (How long, O Catiline, will you abuse our patience? And for how long will that madness of yours mock us?)<br/>
<br/>
Cicero's version of Liber Primus (first Book), sections 1.10.32–3 (fragments included in most Lorem Ipsum variants in red):<br/>
<br/>
Cicero writing letters; from an early edition by Hieronymus Scotus Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam voluptatem, quia voluptas sit, aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos, qui ratione voluptatem sequi nesciunt, neque porro quisquam est, qui dolorem ipsum, quia dolor sit amet, consectetur, adipisci[ng] velit, sed quia non numquam [do] eius modi tempora inci[di]dunt, ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit, qui in ea voluptate velit esse, quam nihil molestiae consequatur, vel illum, qui dolorem eum fugiat, quo voluptas nulla pariatur?

<a href="#" class="ScrollTop"></a>
</body></html>
              
            
!

CSS

              
                body {font-family:Arial,sans-serif; font-size:16px; color:#1d2129; margin:20px auto; padding:20px; line-height:20px; width:100%; max-width:640px; text-align:justify; border: 10px solid #ffb6c1; border-radius: 25px;}
#header {width:100%; height:100%; height:auto; position:sticky; position:-webkit-sticky; top:0px; padding:0px; margin:0px auto 20px; background:#ffb6c1;}
#header a {display:block; padding:20px 0px 5px; margin:auto; text-align:center;color:#fff;font-size:40px; height:50px;text-decoration:none;}
#header a {max-height:35px;}
@media screen and (max-width:640px){body{width:auto;max-width:100%;margin:0px;}}
html{scroll-behavior:smooth;}
.ScrollTop {width:50px; height:50px; position:fixed; bottom:50px; right: 50px; z-index:99; cursor:pointer; border-radius:100px; transition:all .5s; background:#ffb6c1 url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center center;}
.ScrollTop:hover {opacity:0.8;background:#ffb6c1 url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center center;}
              
            
!

JS

              
                
              
            
!
999px

Console