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.
.lm-tabel
.lm-item.lm-item-2
.lm-item-top
span.lm-item-title.lm-underline START
.lm-item-price
i.icon-dollar
|0.995
.lm-item-body
.lm-item-desc
strong CUSTOM AIR
p Air, air, air
ul.lm-item-list
li #1 24/8 support
i.icon-cancel
li #2 10 cookies
i.icon-ok
li #3 2 candy
i.icon-ok
li #4 air form
i.icon-cancel
li #5 air filter
i.icon-cancel
li #6 air analytik
i.icon-cancel
.lm-item-link
a(href="#")
svg(width='152', height='52',xmlns='http://www.w3.org/2000/svg')
defs
lineargradient#lm-gr-2(x1='0', y1='0', x2='100%', y2='100%')
stop(offset='0%', stop-color='#7E052D')
stop(offset='100%', stop-color='#F6266B')
rect(x='1', y='1', width='150', height='50', rx='25', fill='#fff', stroke='url(#lm-gr-2)', stroke-width='1')
text(x='23%', y='65%', fill='url("#lm-gr-2")') CHOOSE
.lm-item-bottom
.lm-item.lm-item-1
.lm-item-top
span.lm-item-title.lm-underline BUSINESS
.lm-item-price
i.icon-dollar
|2.997
.lm-item-body
.lm-item-desc
strong CUSTOM AIR
p Air, air, air
ul.lm-item-list
li #1 24/8 support
i.icon-ok
li #2 10 cookies
i.icon-ok
li #3 2 candy
i.icon-ok
li #4 air form
i.icon-ok
li #5 air filter
i.icon-cancel
li #6 air analytik
i.icon-cancel
.lm-item-link
a(href="#")
svg(width='152', height='52',xmlns='http://www.w3.org/2000/svg')
defs
lineargradient#lm-gr-1(x1='0', y1='0', x2='100%', y2='100%')
stop(offset='0%', stop-color='#241326')
stop(offset='100%', stop-color='#85468C')
rect(x='1', y='1', width='150', height='50', rx='25', fill='#fff', stroke='url(#lm-gr-1)', stroke-width='1')
text(x='23%', y='65%', fill='url("#lm-gr-1")') CHOOSE
.lm-item-bottom
span.lm-underline!='Choose now '
| and we meet tomorrow!
.lm-item.lm-item-3
.lm-item-top
span.lm-item-title.lm-underline PREMIUM
.lm-item-price
i.icon-dollar
|5.005
.lm-item-body
.lm-item-desc
strong CUSTOM AIR
p Air, air, air
ul.lm-item-list
li #1 24/8 support
i.icon-ok
li #2 10 cookies
i.icon-ok
li #3 2 candy
i.icon-ok
li #4 air form
i.icon-ok
li #5 air filter
i.icon-ok
li #6 air analytik
i.icon-ok
.lm-item-link
a(href="#")
svg(width='152', height='52',xmlns='http://www.w3.org/2000/svg')
defs
lineargradient#lm-gr(x1='0', y1='0', x2='100%', y2='100%')
stop(offset='0%', stop-color='#1A466F')
stop(offset='100%', stop-color='#4D93D5')
rect(x='1', y='1', width='150', height='50', rx='25', fill='#fff', stroke='url(#lm-gr)', stroke-width='1')
text(x='23%', y='65%', fill='url("#lm-gr")') CHOOSE
.lm-item-bottom
body
background url('http://pp.vk.me/c623124/v623124915/42806/oQsNfigr9tM.jpg')
background-size cover
BR = 7px
.lm-underline
position relative
&:after
position absolute
content ' '
right 5%
left 5%
bottom 0
height 1px
background-image linear-gradient(90deg,transparent,#fff,transparent)
.lm-tabel
font-family 'Open Sans'
max-width 1000px
width 100%
padding-top 10px
margin 0 auto
clearfix()
L = 30
.lm-item-1
.lm-item-bottom
.lm-item-top
background-color lighten(#241326,5)
background-image linear-gradient(-45deg,lighten(#241326,L),#241326)
.lm-item-2
.lm-item-bottom
.lm-item-top
background-color lighten(#cb0948,5)
background-image linear-gradient(-45deg,lighten(#7E052D,L),#7E052D)
.lm-item-3
.lm-item-bottom
.lm-item-top
background-color lighten(#235f95,5)
background-image linear-gradient(-45deg,lighten(#1A466F,L),#1A466F)
.lm-item
transform scale(.9)
vertical-align top
width 33%
float left
display inline-block
position relative
transition transform .3s ease-out, filter .3s
&:hover
transform scale(1)
&:not(:hover).blur
filter blur(3px)
&:after
&:before
z-index -1
content ' '
position absolute
left 10px
top 80%
bottom 18px
right 10px
transform-origin bottom center
box-shadow 0px 25px 10px -8px rgba(#000, .4)
&:after
transform rotate(6deg) translate3d(15px,0,0)
&:before
transform rotate(-6deg) translate3d(-15px,0,0)
&-top
padding-top 20px
text-transform uppercase
border-top-left-radius BR
border-top-right-radius BR
text-align center
&-title
color lighten(#9b8e98,30)
font 100 30px/70px 'Open Sans'
&-price
background rgba(white,.05)
margin-top 20px
font-size 40px
line-height 50px
color white
i
font-size 15px
&-body
padding 15px
background #fff
&-desc
text-align center
margin-bottom 15px
text-transform uppercase
strong
color #868686
font 400 16px 'Open Sans'
p
color #b4b4b4
margin 0
&-list
margin 0
padding 0
list-style none
li
&:nth-child(2n+1)
background-color #fbfbfb
color #b4b4b4
border-bottom 1px dotted rgba(#000,.1)
margin-bottom 5px
.icon-cancel
.icon-ok
float right
.icon-ok
color #75bc9a
.icon-cancel
color #BF7375
&-link
text-align center
margin-top 15px
a
text-decoration none
display inline-block
height 54px
&:hover
transition transform .3s
transform translate3d(0,-3px,0)
&:active
transition transform .1s
transform translate3d(0,0,0)
text
font-size: 21px;
font-weight: 700
user-select none
&-bottom
text-align center
border-bottom-left-radius BR
border-bottom-right-radius BR
padding 15px
color rgba(#fff,.5)
font-weight 100
min-height 20px
span
color white
font-weight 400
margin-right 3px
transform skewX(-10deg)
display inline-block
@font-face
font-family 'fontello'
src url('data:application/font-woff;base64,d09GRgABAAAAAAuUAA4AAAAAFCgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABRAAAAEQAAABWPi5I32NtYXAAAAGIAAAAOgAAAUrQHxmxY3Z0IAAAAcQAAAAKAAAACgAAAABmcGdtAAAB0AAABZQAAAtwiJCQWWdhc3AAAAdkAAAACAAAAAgAAAAQZ2x5ZgAAB2wAAAGGAAAB7vzhCgVoZWFkAAAI9AAAADUAAAA2Bty3emhoZWEAAAksAAAAHgAAACQHUgNXaG10eAAACUwAAAAQAAA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Xqm224HUehyROdSdtrbdVTmIXGt+H7unq+jDrWTmRi9EwGLkPmRk/DwHqxtfP7ZvPvfuhDY44VDBIeVQwLQYP2hmMHLbT5IwRjZggzN1kJMvhIaXwsuCIuZnLGPT4TRhltyIyU7CHge7bnh6SI61NWMXuzu/GItN4jKbywL4/d7WY9kbIi0y/s+2/vOZbcrUNruWrdpSm6Egx2agjPYz03pQnoveJULO09mrz/+b4f4GSETQB4nGNgYoAALgbsgIWBgZGJkZmRhS0lPycnsYgtOTEvOTWHKT+bgQEAQtQF6XicY/DewXAiKGIjI2Nf5AbGnRwMHAzJBRsZWJ02MjBoQWgOFHonAwMDJzKLmcFlowpjR2DEBoeOiI3MKS4b1UC8XRwNDIwsDh3JIREgJZFAsJGBR2sH4//WDSy9G5kYXAAH0yK4AAAA') format('woff')
font-weight normal
font-style normal
[class^="icon-"]:before, [class*=" icon-"]:before
font-family "fontello"
font-style normal
font-weight normal
speak none
display inline-block
text-decoration inherit
width 1em
margin-right .2em
text-align center
font-variant normal
text-transform none
line-height 1em
margin-left .2em
-webkit-font-smoothing antialiased
-moz-osx-font-smoothing grayscale
.icon-dollar
&:before
content '\e806'
.icon-cancel
&:before
content '\e807'
.icon-ok
&:before
content '\e808'
$(document).ready ()->
arrItems = $('.lm-item')
arrItems.hover( ->
arrItems.addClass('blur')
,->
arrItems.removeClass('blur')
)
Also see: Tab Triggers