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 id="header">
<p id="tel">mon num&eacute;ro (non surtax&eacute;)</p>
<p id="trust"><a href="#">Site s&eacute;curis&eacute;</a><a href="#">Satisfait ou rembours&eacute;</a></p>
<p id="ras"><a href="#lorem">V</a></p>
</div>

<ul id="logo"><li><a title="Qui sommes-nous ?" href="#">mon site.com</i></a></li></ul>

<ul id="menuhaut">
<li><a href="#">Compte</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">CGV</a></li>
</ul>

<p id="lorem">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit amet, adipiscing nec, ultricies sed, dolor. Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi. Proin porttitor, orci nec nonummy molestie, enim est eleifend mi, non fermentum diam nisl sit amet erat. Duis semper. Duis arcu massa, scelerisque vitae, consequat in, pretium a, enim. Pellentesque congue. Ut in risus volutpat libero pharetra tempor. Cras vestibulum bibendum augue. Praesent egestas leo in pede. Praesent blandit odio eu enim. Pellentesque sed dui ut augue blandit sodales. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aliquam nibh. Mauris ac mauris sed pede pellentesque fermentum. Maecenas adipiscing ante non diam sodales hendrerit.

Ut velit mauris, egestas sed, gravida nec, ornare ut, mi. Aenean ut orci vel massa suscipit pulvinar. Nulla sollicitudin. Fusce varius, ligula non tempus aliquam, nunc turpis ullamcorper nibh, in tempus sapien eros vitae ligula. Pellentesque rhoncus nunc et augue. Integer id felis. Curabitur aliquet pellentesque diam. Integer quis metus vitae elit lobortis egestas. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi vel erat non mauris convallis vehicula. Nulla et sapien. Integer tortor tellus, aliquam faucibus, convallis id, congue eu, quam. Mauris ullamcorper felis vitae erat. Proin feugiat, augue non elementum posuere, metus purus iaculis lectus, et tristique ligula justo vitae magna.
Aliquam convallis sollicitudin purus. Praesent aliquam, enim at fermentum mollis, ligula massa adipiscing nisl, ac euismod nibh nisl eu lectus. Fusce vulputate sem at sapien. Vivamus leo. Aliquam euismod libero eu enim. Nulla nec felis sed leo placerat imperdiet. Aenean suscipit nulla in justo. Suspendisse cursus rutrum augue. Nulla tincidunt tincidunt mi. Curabitur iaculis, lorem vel rhoncus faucibus, felis magna fermentum augue, et ultricies lacus lorem varius purus. Curabitur eu amet.</p>
              
            
!

CSS

              
                html {scroll-behavior: smooth} 

div#header {display: flex; border: 1px solid red}
p#tel {flex: 1; border: 1px solid green}
p#trust > a {margin-right: 20px}

ul#menuhaut {margin-top: 100px; border: 1px solid green; box-shadow: 0 15px 0 0 white}


@media screen and (max-width: 768px)
{
html {scroll-padding-top: 80px}  

p#trust, ul#logo {display: none}

ul#menuhaut {position: sticky; top: 0; background-color: #FFF; margin-bottom: 30px; z-index: 1}

@keyframes trg
{
0% {background-color: #FFF}
50% {background-color: #EDF0F1}
100% {background-color: #FFF}
}

p#lorem:target {animation: trg 6s step-start both; background-color: #EDF0F1}
  
@supports (-webkit-touch-callout: none) and (not(translate: none))
{
ul#menuhaut {position: static}
}
  
}

              
            
!

JS

              
                
              
            
!
999px

Console