JavaScript preprocessors can help make authoring JavaScript easier and more convenient. For instance, CoffeeScript can help prevent easy-to-make mistakes and offer a cleaner syntax and Babel can bring ECMAScript 6 features to browsers that only support ECMAScript 5.
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.
HTML Settings
Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
<div class="holy-grail">
<header class="grail-header">
<span>Header</ span>
</header>
<main class="grail-main">
<span>Main</ span>
<h1>Holy Grail !</h1>
<p class="caption">This demo is also available for tweaking wih the Visual Grid Editor included in the <a href="https://cssgrid.cc/#get-grid-builder"> CSS Grid Builder app</a>.</p>
</main>
<nav class="grail-nav">
<span>Navigation</span>
</nav>
<aside class="grail-aside">
<span>Aside</span>
</aside>
<footer class="grail-footer">
<span>Footer</span>
</footer>
</div>
.holy-grail {
height: 800px;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 100px 60px 1fr 100px 80px;
grid-template-areas: 'header' 'navigation' 'main' 'aside-1' 'footer';
grid-row-gap: 1px;
grid-column-gap: 1px;
font-size: 22px;
text-align: center;
}
.grail-header {
grid-area: header;
background-color: #dcd6fe;
padding: 20px;
}
.grail-nav {
grid-area: navigation;
background-color: #c6c0ff;
padding: 20px;
}
.grail-main {
grid-area: main;
background-color: #f9f6d2;
padding: 20px;
}
.grail-aside {
grid-area: aside-1;
background-color: #d4ffd1;
padding: 20px;
}
.grail-footer {
grid-area: footer;
background-color: #ffd1d1;
padding: 20px;
}
@media screen and (min-width: 786px) {
.holy-grail {
grid-template-areas:
'header header header header header'
'. navigation main aside-1 .'
'footer footer footer footer footer';
grid-template-columns: 5% minmax(10%, 150px) minmax(70%, 150px) minmax(10%, 150px) 5%;
grid-template-rows: minmax(100px, auto) 1fr minmax(60px, auto);}
}
@media screen and (min-width: 1400px) {
.holy-grail {
grid-template-areas:
'header header header header header'
'. navigation main aside-1 .'
'footer footer footer footer footer';
grid-template-columns: 1fr minmax(10%, 150px) 1000px minmax(10%, 150px) 1fr;
grid-template-rows: minmax(100px, auto) 1fr minmax(60px, auto);}
}
.caption {
font-family: helvetica;
font-size: 16px;
margin-top: 12px;
}
Also see: Tab Triggers