HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
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.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<div class="container text-center m-5">
<h3>Thème xswatch4 variante Cerulean</h3>
<hr />
<div class="row">
<div class="col">
<p class="text-justify"><strong>Parafoudre pour éclairage à LED Classe 1 </strong></p>
</div>
<div class="w-100"></div>
<div class="col-md-6">
<p class="text-justify">
La gamme MLPC de chez Citel est une série complète de parafoudres AC compacts conçu pour les systèmes d’éclairages LED. Ces parafoudres sont très compacts pour être intégrer dans les luminaires et sont disponibles en 2 modes de raccordement.</p>
</div>
<div class="col-md-6">
<p class="text-justify">
La gamme MLPC de chez Citel est une série complète de parafoudres AC compacts conçu pour les systèmes d’éclairages LED. Ces parafoudres sont très compacts pour être intégrer dans les luminaires et sont disponibles en 2 modes de raccordement.</p>
</div>
</div>
<hr />
<div class="row">
<div class="col-md-6 bg-secondary">colonne A</div>
<div class="col-md-6 bg-success">colonne B</div>
</div>
<hr />
<div class="row justify-content-center bg-primary p-2">
<div class="col-md-4 bg-secondary mr-md-3 mb-2 mb-md-0">colonne A</div>
<div class="col-md-4 bg-success">colonne B</div>
</div>
<hr />
<div class="btn-group" role="group" aria-label="Button group with nested dropdown">
<button type="button" class="btn btn-primary" title="Lanternes"><span class="fas fa-lightbulb fa-fw fa-lg"></span><span class="d-none d-md-inline"> Lanternes</span></button>
<button type="button" class="btn btn-success"><span class="fas fa-traffic-light fa-fw fa-lg text-danger"></span><span class="d-none d-md-inline"> Feux</span></button>
<div class="btn-group" role="group">
<button id="btnGroupDrop1" type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="fas fa-city fa-fw fa-lg"></span><span class="d-none d-md-inline"> Dropdown</span>
</button>
<div class="dropdown-menu" aria-labelledby="btnGroupDrop1">
<a class="dropdown-item" href="#">Dropdown link</a>
<a class="dropdown-item" href="#">Dropdown link</a>
</div>
</div>
<div class="btn-group" role="group">
<button id="btnGroupDrop2" type="button" class="btn btn-borne dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="fas fa-battery-empty fa-fw fa-lg fa-rotate-270"></span> <span class="d-none d-md-inline">Bornes</span>
</button>
<div class="dropdown-menu" aria-labelledby="btnGroupDrop1">
<a class="dropdown-item" href="#" title="Doc tech."><span class="fas fa-file-alt fa-fw fa-lg borne-color"></span><span class="d-none d-md-inline"> Documentation technique</span></a>
<a class="dropdown-item" href="#" title="Aperçu"><span class="fas fa-images fa-fw fa-lg borne-color"></span><span class="d-none d-md-inline"> Aperçu en situation</span></a>
</div>
</div>
</div>
<hr />
<div class="borne-bg mt-2 p-3">Ceci est un cadre avec le fond "borne-bg"</div>
<div class="borne-border mt-2 p-3 borne-color">Ceci est un cadre avec bordure "borne-bg" et couleur de texte : borne-color</div>
<div class="borne-border mt-2 p-3 borne-hover">Ceci est un cadre avec bordure "borne-bg" et un survol de souris : borne-hover</div>
<div class="d-inline-flex borne-border mt-2 p-3 borne-hover zoom">Idem + Zoom</div>
<div class="d-inline-flex borne-border mt-2 p-3 borne-hover zoom-blanc text-center"><span class="fas fa-lightbulb fa-fw fa-2x fa-rotate-180"></span> Idem + Texte en blanc au zoom</div>
<hr />
<h3>Boutons multilignes selon largeur media</h3>
<div class="d-flex flex-wrap justify-content-center ">
<a type="button" class="btn btn-primary btn-sm mx-2 mt-1" href="#">Bouton 01</a>
<a type="button" class="btn btn-primary btn-sm mx-2 mt-1" href="#">Bouton 02</a>
<a type="button" class="btn btn-primary btn-sm mx-2 mt-1" href="#">Bouton 03</a>
<a type="button" class="btn btn-primary btn-sm mx-2 mt-1" href="#">Bouton 04</a>
<a type="button" class="btn btn-primary btn-sm mx-2 mt-1" href="#">Bouton 05</a>
<a type="button" class="btn btn-primary btn-sm mx-2 mt-1" href="#">Bouton 06</a>
<a type="button" class="btn btn-primary btn-sm mx-2 mt-1" href="#">Bouton 07</a>
<a type="button" class="btn btn-primary btn-sm mx-2 mt-1" href="#">Bouton 08</a>
<a type="button" class="btn btn-primary btn-sm mx-2 mt-1" href="#">Bouton 09</a>
<a type="button" class="btn btn-primary btn-sm mx-2 mt-1" href="#">Bouton 10</a>
</div>
<hr />
<div class="btn-group" role="group" aria-label="Button group with nested dropdown">
<a href="http://www.lumieresdefrance.com/galeries/#15724513400840" target="_blank" type="button" class="btn btn-secondary"><span class="fas fa-lightbulb fa-fw fa-lg"></span>Voir des réalisations</a>
<a href="http://www.lumieresdefrance.com/phpv2/acontenu/download/owni.pdf" target="_blank" type="button" class="btn btn-secondary">Lanternes</a>
</div>
<hr />
<h3>Ensemble d'images présentées en multilignes selon largeur media<br /><span class="text-danger">row-cols...</span></h3>
<div class="row row-cols-xl-4 row-cols-lg-3 row-cols-md-2 row-cols-1 justify-content-center">
<div class="col mb-3">
<div class="card h-100 mx-auto">
<img src="https://www.monxoops.fr/uploads/xmnews/images/news/article-041.png" class="card-img-top" alt="Tetra 2">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
<div class="card-footer">
Card footer
</div>
</div>
</div>
<div class="col mb-3 ">
<div class="card h-100 mx-auto">
<img src="https://www.monxoops.fr/uploads/xmnews/images/news/article-038.png" class="card-img-top" alt="Tetra 2">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
<div class="card-footer">
<a type="button" class="btn btn-primary btn-sm" href="#">Bouton 04</a>
</div>
</div>
</div>
<div class="col mb-3">
<div class="card h-100 mx-auto">
<img src="https://www.monxoops.fr/uploads/xmnews/images/news/article-019.jpg" class="card-img-top" alt="Tetra 2">
<div class="card-body">
<h5 class="card-title"><a type="button" class="btn btn-primary btn-sm mt-2" href="#">Bouton 05</a></h5>
<p class="card-text">This is a wider card.</p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
<div class="card-footer">
Card footer
</div>
</div>
</div>
<div class="col mb-3">
<div class="card h-100 mx-auto">
<img src="https://www.monxoops.fr/uploads/xmnews/images/news/article-028.png" class="card-img-top" alt="Tetra 2">
<div class="card-body">
<h5 class="card-title">Lien sur toute la carte<br />stretched-link</h5>
<p class="card-text">On peut cliquer partout dans le cardre pour atteindre le lien du bouton.<br /><a type="button" class="btn btn-primary btn-sm mt-2 stretched-link" href="#">Bouton 06</a></p>
<p class="card-text"><small class="text-muted">Last updated 3 mins ago</small></p>
</div>
<div class="card-footer">
Card footer
</div>
</div>
</div>
</div>
<hr />
<nav>
<div class="nav nav-tabs" id="nav-tab" role="tablist">
<a class="nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="true">Home</a>
<a class="nav-link" id="nav-profile-tab" data-toggle="tab" href="#nav-profile" role="tab" aria-controls="nav-profile" aria-selected="false">Profile</a>
<a class="nav-link" id="nav-contact-tab" data-toggle="tab" href="#nav-contact" role="tab" aria-controls="nav-contact" aria-selected="false">Contact</a>
</div>
</nav>
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active" id="nav-home" role="tabpanel" aria-labelledby="nav-home-tab">Texte onglet 1</div>
<div class="tab-pane fade" id="nav-profile" role="tabpanel" aria-labelledby="nav-profile-tab">Texte onglet 2</div>
<div class="tab-pane fade" id="nav-contact" role="tabpanel" aria-labelledby="nav-contact-tab">Texte onglet 3</div>
</div>
<p></p>
<hr />
</div>
/*
Use this file - my_xoops.css
- To customize and add CSS definitions for the light variant or for the unique variant,
- To override the Bootstrap CSS file in order to change the default settings of this file.
*/
/* Borne */
.borne-color {
color: #ff9f1a;
}
.borne-border {
border-color: #ff9f1a;
border-style: solid;
border-width: thin;
}
.borne-bg {
background-color: #ff9f1a;
}
.borne-hover:hover {
background-color: #ff9f1a;
}
.btn-borne {
color: #fff;
background-color: #ff9f1a;
border-color: #ff9f1a;
}
.btn-borne:hover {
color: #fff;
background-color: #ff9400;
border-color: #e68600;
}
.btn-borne:focus,
.btn-borne.focus {
color: #fff;
background-color: #ff9400;
border-color: #e68600;
box-shadow: 0 0 0 0.2rem rgba(255, 168, 48, 0.5);
}
.btn-borne.disabled,
.btn-borne:disabled {
color: #fff;
background-color: #ff9f1a;
border-color: #ff9f1a;
}
.btn-borne:not(:disabled):not(.disabled):active,
.btn-borne:not(:disabled):not(.disabled).active,
.show > .btn-borne.dropdown-toggle {
color: #fff;
background-color: #e68600c;
border-color: #cd7700;
}
.btn-borne:not(:disabled):not(.disabled):active:focus,
.btn-borne:not(:disabled):not(.disabled).active:focus,
.show > .btn-borne.dropdown-toggle:focus {
box-shadow: 0 0 0 0.2rem rgba(255, 180, 77, 0.5);
}
/* Zoom */
.zoom:hover,
.zoom-blanc:hover {
transform: scale(1.2);
transition: transform 0.2s ease;
z-index: 999;
}
.zoom-blanc:hover {
color: white;
}
Also see: Tab Triggers