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='post hentry' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>
<h1 class='post-title'>
<span class='entry-title hundido'>
Insertando bloques de publicidad y botones sociales
</span>
</h1>
<div class='post-header'></div>
<div class='post-body entry-content'>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque eu congue mauris. Mauris pharetra venenatis ante non ultrices. In viverra libero urna, ac aliquet erat pulvinar et. Quisque felis turpis, commodo eu blandit vitae, tempor ut magna. Fusce vel dignissim nulla. Pellentesque fringilla sem eget porttitor tempus. Nunc id tellus eu felis mollis varius et et quam. Vivamus ac ante in ligula tristique pretium. Etiam in odio nisl.
<br/>
<br/>
Sed pellentesque magna massa, at bibendum libero ultrices sed. Donec nec leo imperdiet, dapibus lorem sit amet, luctus odio. Suspendisse et est iaculis, porttitor nisi non, rhoncus ipsum. Cras et adipiscing purus, ultrices cursus justo.
<br/>
<br/>
Cras urna velit, sollicitudin ut nisi non, scelerisque sagittis orci. Etiam rutrum quam a commodo volutpat. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae.
<br />
<br />
Duis rutrum urna non sagittis malesuada. Maecenas eleifend, quam id porta dictum, tortor nisi bibendum sem, eleifend rutrum ipsum orci vitae mi. Maecenas scelerisque pellentesque arcu, quis sollicitudin ante volutpat at. Donec id mattis nisl, sed tempor tortor. Nunc viverra porttitor quam vel feugiat. Praesent et faucibus felis, in imperdiet nisl. Proin ultrices quam quis massa sagittis semper. Aliquam tristique, neque condimentum gravida facilisis, felis nulla aliquam justo, eget accumsan ipsum purus eu dolor. Vivamus a lacinia quam. Praesent pellentesque turpis dui, id lacinia est facilisis in. Duis egestas urna quis felis elementum porta. Vivamus accumsan condimentum porta. Quisque ultrices augue ac sagittis malesuada.
<br />
<br />
<h3>Lorem ipsum sit amet</h3>
<br />
Etiam enim odio, venenatis vel nisl vel, pretium lacinia lacus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nam nulla massa, adipiscing ut mauris ac, adipiscing ornare metus. Integer mattis accumsan aliquet. Duis a ipsum a nisl imperdiet venenatis. Nam vitae tincidunt mi. Integer euismod convallis risus, a facilisis urna aliquet pulvinar. Nullam vel eleifend sem, eu porta nibh. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
<br />
<br />
Nulla consequat faucibus nisi, ac fringilla magna cursus id. Sed molestie lectus sem, a varius ante elementum ut. Proin eu faucibus lacus. Etiam mollis consequat ante quis ultrices. Etiam ullamcorper consequat rutrum. Nunc mollis sollicitudin metus eget fringilla. Suspendisse vehicula dolor at justo posuere, et commodo velit tempus. Aliquam vitae consequat diam, vitae cursus tortor. Nullam eget augue eget velit varius aliquam eget vel nibh.
<br />
<br />
<div class="separator" style="text-align: center;">
<a href="https://1.bp.blogspot.com/-KYH4HAoUKtE/U53nCBO5_3I/AAAAAAAAQhA/o-7725MRB9I/s1600/menu+con+efectos.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;">
<img alt="2 menús con efectos" border="0" src="https://1.bp.blogspot.com/-KYH4HAoUKtE/U53nCBO5_3I/AAAAAAAAQhA/o-7725MRB9I/s640/menu+con+efectos.jpg" height="441" title="2 menús con efectos" width="640" />
</a>
</div>
<br />
<br />
Pellentesque pulvinar felis elit. Fusce sodales egestas facilisis. Maecenas scelerisque vestibulum mi, at molestie nulla elementum eu. Fusce sodales arcu libero, nec vulputate ipsum dignissim blandit. Fusce cursus erat at imperdiet eleifend. Ut et nibh cursus, feugiat magna ut, tincidunt sapien. Quisque dapibus ut mauris vel consectetur. Sed porta nec sapien in laoreet. Nullam iaculis sapien id enim dapibus, in imperdiet urna tempus. Mauris faucibus nulla ac eros accumsan tempus. Duis nisi velit, pretium sed dui non, convallis venenatis justo. Vestibulum eu justo dolor. Vivamus ante eros, accumsan eget dictum rhoncus, tristique vitae odio.
<br />
</div>
</div>
<div class='redes'>
<!--Twitter -->
<div class='bottwi'>
<a class='twitter-share-button' data-count='vertical' data-lang='es' data-url='http://www.oloblogger.com' href='https://twitter.com/share'>Tweet</a><script src='https://platform.twitter.com/widgets.js' type='text/javascript'></script>
</div>
<!--Facebook-->
<div class='botfac'>
<iframe src="//www.facebook.com/plugins/like.php?href=http://www.oloblogger.com&width&layout=box_count&action=like&show_faces=false&share=true&height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:65px;" allowTransparency="true"></iframe>
</div>
<!-- Google +1 -->
<div class='botgoo'>
<div class='g-plusone' data-href='http://www.oloblogger.com'/>
<script type='text/javascript' src='https://apis.google.com/js/plusone.js'></script>
</div>
</div>
<div id='adsense1'><script async src='//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js'></script>
<!-- Bloque adaptable comodin -->
<ins class='adsbygoogle'
style='display:block'
data-ad-client='ca-pub-1186760826623337'
data-ad-slot='8157470171'
data-ad-format='auto'></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
.redes {
display: none;
float: left;
width: 76px;
margin: 0 10px 10px 0;
padding: 5px;
border: 1px solid #ccc;
border-radius: 5px;
background: #eee;
text-align: center;
}
#adsense1 {
display: none;
float: right;
width: 300px;
height: 250px;
margin: 0 0 10px 20px ;
overflow: hidden;
background: #ccc;
}
$('#adsense1').insertAfter($('br:eq(1)')).css('display','inline-block');
$('.redes').insertBefore($('.post-body')).css('display','inline-block');
Also see: Tab Triggers