Pen Settings



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


Babel includes JSX processing.

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


Add Packages

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.


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.


  .internal {
    color: green;

<header role="banner" class="header">
  <div class="container">
    <p class="header__logo">
      <a href="">
        <img src="" alt="">

<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>

  <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>



                .box {
  font-family: Arial;

.red {
  color: red;

.blue {
  color: blue;

#link-123 {
  color: cyan;

.link {
  color: red;
} {
  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;