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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

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

Packages

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.

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

              
                

<div id="main-layout">
  
  <div id="ruta-1" class="blue">  
    
    <div class="flex">
      
    OLIKA CHATT-KANALER
    </div>
  
  </div>
  <div id="ruta-2" class="red"> SJÄLVA CHATTVYN</div>
  <div id="ruta-3" class="orange"> LÄGG TILL SMILEYS OCH FILER</div>
  <div id="ruta-4" class="purple"> SJÄLVA INPUT-CHATTEN</div>
  
</div>
              
            
!

CSS

              
                

#main-layout{
  
  display: grid;
  height: 400px;
  width: 100%;
  background-color:grey;
  
  grid-column-gap: 20px;
  grid-row-gap: 5px;
  
 /* namnge grid sätt 1 */
  

/*  F: Hur stor är den första kolumnen i förhållande till den andra*/
 /* S: Den är dubbelt så stort 
  grid-template-columns: 
  2fr 1fr; */
  
  grid-template-columns: 
  1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  
  
 grid-template-rows: 
  3fr 
  2fr
  1fr; 
  
 grid-template-areas: 
    "ruta1 ruta2 ruta2 ruta2 ruta2 ruta2 ruta2 ruta2"
    "ruta1 ruta2 ruta2 ruta2  ruta2 ruta2 ruta2 ruta2"
    "ruta1 KNAPPEN KNAPPEN botten  botten botten botten botten";   
  
  /* Namnge grid sätt 2 
  
  
  grid-template-columns: 
  [sidopanel] 1fr [mittendel] 3fr;
  
 grid-template-rows: 
  [huvuddel] 
  3fr 

  [bottendelen]
  1fr; 
  
 */
  
}



#ruta-1 {
  grid-area: ruta1;
  color: white;
  
 /* grid-column: sidopanel;
  grid-row: huvuddel; */

}

#ruta-2 {
  grid-area: ruta2;
  
  /* grid-column: mittendel;
  grid-row:huvuddel;*/

}


#ruta-3 {
  
  grid-area: KNAPPEN;
  /*
  grid-column: mittendel;
  grid-row:huvuddel; */

}

#ruta-4 {
  grid-area: botten; 
  
    /* grid-column: mittendel;
  grid-row:bottendelen; */

}



.blue {
  
  background-color:blue;
}

.red{
  
  background-color:red;
  
}

.orange {
  
  background-color:orange;
  
}


.purple {
  
  background-color:purple;
  
}
              
            
!

JS

              
                
              
            
!
999px

Console