Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

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.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                
<style>
  .internal {
    color: green;
  }
</style>

<header role="banner" class="header">
  <div class="container">
    <p class="header__logo">
      <a href="http://develtalks.cz">
        <img src="http://develtalks.cz/assets/img/logo.svg" alt="DevelTalks.cz">
      </a>
    </p>
  </div>
</header>

<main class="wrapper">
  <h2>Dědičnost - ukázka na font-family</h2>
  <div class="box">
    <p>Lorem ipsum dolor sit amet, dolores laborum laudantium nam non, voluptate.</p>
  </div>

  <h2>Kaskáda - příklad z motivačního obrázeku</h2>
  <div class="blue red">Develtalks.</div>
  <div class="red blue">Develtalks.</div>
  
  <h2>Kaskáda - příkald na různé css</h2>
  <div class="blue">External.</div>
  <div class="blue internal">Internal.</div>
  <div class="blue internal" style="color: tomato">Inline.</div>
</main>

              
            
!

CSS

              
                .box {
  font-family: Arial;
}

.red {
  color: red;
}

.blue {
  color: blue;
}






#link-123 {
  color: cyan;
}

.link {
  color: red;
}

.link.one.two.three {
  color: red;
}


ul > li {
background-color: #00d5e3;
}

.first ~ li {
background-color: red;
}

.first + li {
background-color: blue;
}

[class^="super"] {
font-weight: bold;
}

[class*="class"] {
font-size: 22px;
}

[class$="black"] {
 background-color: black;
}






/*ul > li {*/
  /*background-color: #00d5e3;*/
/*}*/

/*.first ~ li {*/
  /*background-color: red;*/
/*}*/

/*.first + li {*/
  /*background-color: blue;*/
/*}*/

/*[class^="super"] {*/
  /*font-weight: bold;*/
/*}*/

/*[class~="class"] {*/
  /*font-size: 22px;*/
/*}*/

/*[class$="black"] {*/
   /*background-color: black;*/
/*}*/









































/* stuff */
body {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  font-size: 18px;
}

.header {
  width: 100%;
}

.header .container {
  width: 800px;
  margin: 0 auto;
  display: block;
  border-bottom: 2px solid rgba(84, 113, 133, 0.5)
}

.header__logo {
  margin: 30px 0 20px;
  text-align: center
}

.header__logo img {
  width: 300px
}

.wrapper {
  max-width: 800px;
  margin-top: 100px;
}


h2 {
  font-family: Arial;
  font-size: 20px;
  font-style: italic;
  color: #444444;
  border-bottom: 1px solid #a1a1a1;
}
              
            
!

JS

              
                
              
            
!
999px

Console