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.
p
table
tbody
tr
td
td(style='width: 40%; text-align: center;', colspan='3')
.name Catherine Bailhache
td(style='width: auto;')
tr
td
td(style='width: 40%; text-align: center;', colspan='3')
l coordinatrice
td
tr
td
td(style='width: 40%; text-align: center;', colspan='3')
| ACOR
br
.small Port de Vallée
br
| Saint-Sulpice-sur-Loire
br
| 49320 BLAISON SAINT-SULPICE
br
br
| 33+ 2 41 68 25 16
br
| bailhache.acor@gmail.com
td
tr
td
td
td
td
td
tr
td
td
td
td
td
.intertitre
br
br
span BUREAU
br
span (dernière élection : 25/06/2021)
br
span 🔻
br
br
br
table
tbody
//tr
td
td(style='width: 40%; text-align: center;', colspan='3')
.name Antoine Glémain
td(style='width: auto;')
//tr
td
td(style='width: 40%; text-align: center;', colspan='3')
l président
td
//tr
td
td(style='width: 40%; text-align: center;', colspan='3')
.small antoine.glemain@levoxmayenne.fr
br
td
tr
td
td
td
td
td
tr
td
td
td
td
td
table
tbody
tr
td
td
.name Véronique L'Allain
br
span (La Salamandre/Sew,
br
| Morlaix)
td
td
.name Élise Mignot
br
span (Café des images, Hérouville Saint-Clair)
td
tr
td
td
| vice-présidente
br
td
td
| vice-président
br
br
tr
td
td
td
td
td
tr
td
td
td
td
td
tr
td
td
td
td
td
tr
td
td
.name Mathias Triballeau
br
span (Le Concorde,
br
| La Roche-sur-Yon)
td
td
.name Hervé Aguillard
br
span (L'Omnia, Rouen)
td
tr
td
td
| vice-présidente
br
td
td
| vice-président
br
br
tr
td
td
td
td
td
tr
td
td
td
td
td
tr
td
td
td
td
td
tr
td
td
td
td
.name Thomas Pouteau
br
span (Le Vox, Mayenne)
td
tr
td
td
td
td
| secrétaire
br
tr
td
td
td
td
td
tr
td
td
td
td
td
tr
td
td
td
td
td
tr
td
td
.name Isabelle Allo
br
span (Le Quai des images,
br
|Loudéac)
td
td
.name Jacques Fretel
br
span
td
tr
td
td
| trésorière
br
td
td
| trésorier
br
tr
td
td
td
td
td
.intertitre
br
br
br
span
strong Adresse de facturation
br
span 🔻
br
span Jacques Fretel
br
span ACOR
br
span 155 A, Avenue Général Leclerc
br
span 35700 RENNES
br
br
br
$purple=hsl(255,41%,41%)
//CATH
$mq--mobile = 320px
$mq--tablet = 600px
$mq--desktop = 1280px
// breakpoints (not used here for the moment) (eg @media break-S)
break-S = "screen and (max-width $mq--mobile)"
break-M = "screen and (min-width $mq--tablet)"
break-L = "screen and (min-width $mq--desktop)"
// font-size
font($scale-min, $scale-max)
font-size $scale-min
@media all and (min-width $mq--mobile)
font-size "calc(%s + %s * ((100vw - %s) / %s))" % ($scale-min unit($scale-max - $scale-min, '') $mq--mobile unit($mq--desktop - $mq--mobile, ''))
@media all and (min-width $mq--desktop)
font-size $scale-max
*,
*::after,
*::before
box-sizing border-box
body
//background-image url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/194946/paper.png)
//background-size 10px
background white
font-family 'PT sans narrow', sans-serif
cursor s-resize
font(16px, 24px)
padding-left 1em
border-left 7px solid hsla(0, 0%,0%, 0.1)
::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 1px rgba(255,255,255,0.51);
background-color: rgba(19,46,5,0.51);
border-radius: 10px;
}
::-webkit-scrollbar {
width: 5px;
height:5px;
background-color: rgba(255,255,255,0.2);
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: #111;
background-image: -webkit-gradient(linear, 40% 0%, 75% 84%, from(hsl(255,51%,31%)), to(hsl(74,35%,66%)), color-stop(0.6, hsl(255,100%,51%)));
}
table
width 100%
.name
font-weight bold
color $purple
.small
font-size 0.8em
.intertitre
display block
position relative
width 100%
text-align center
.text
padding 1em
text-align center
@media all and (min-width:400px)
.text
display none !important
table
width 100%
tbody
width 100%
tr
td:first-child
width 8%
td:nth-child(2)
width 40%
text-align left
td:nth-child(3)
width 4%
td:nth-child(4)
width 40%
text-align right
td:last-child
width 8%
@media all and (max-width:309px)
.table
display none !important
Also see: Tab Triggers