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

              
                <!----------------------------------------------------------------
Importer Tailwind via CDN
------------------------------------------------------------------>
<script src="https://cdn.tailwindcss.com"></script>

<!------------------------------------------------
Retrouvez ici la correction de l'exercice final  - Visualiser le resultat dans une nouvelle onglet
-------------------------------------------------->

<body class="bg-[#bdc3c7]">
<header class="bg-[#34495e] h-[150px] flex justify-center items-center">
        <h1 class="text-[#f1c40f] text-[2rem] capitalize">nous contacter</h1>
</header>
<nav class="bg-[#c0392b]">
    <ul class="flex justify-evenly">
        <li class="p-[20px_30px] hover:bg-[#e74c3c]"><a href="#" class="text-[#ecf0f1] uppercase text-xl">home</a></li>
        <li class="p-[20px_30px] hover:bg-[#e74c3c]"><a href="#" class="text-[#ecf0f1] uppercase text-xl">about</a></li>
        <li class="p-[20px_30px] hover:bg-[#e74c3c]"><a href="#" class="text-[#ecf0f1] uppercase text-xl">contact</a></li>
    </ul>
</nav>
<section class="bg-[#ecf0f1] w-1/2 mx-auto mt-[80px] p-[20px] shadow-md rounded-[7px] ">
    <form action="" method="post">
        <input type="email" name="email" placeholder="email" class="w-full p-[10px] mb-[10px] rounded-[5px] border border-[#bdc3c7] placeholder:capitalize focus:border-[#2ecc71] focus:outline-none active:border-[#2ecc71] active:outline-none">
        <textarea name="msg" placeholder="Votre message" class="w-full p-[10px] mb-[10px] rounded-[5px] border border-[#bdc3c7] placeholder:capitalize focus:border-[#2ecc71] focus:outline-none active:border-[#2ecc71] active:outline-none"></textarea>
        <input type="submit" value="envoyer" class="block mx-auto bg-[#f39c12] p-[10px_30px] rounded-md uppercase text-white font-bold hover:bg-[#d35400] hover:scale-110 hover:cursor-pointer">
    </form>
</section>
<footer class="bg-[#34495e] h-[100px] w-[100%] absolute bottom-0 flex justify-center items-center ">
    <p class="text-[#ecf0f1] text-[0.8rem]">&copy; all rights reserved</p>
</footer>
    
</body>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console