CodeLab
Tutorials For Everyone
Run
Learn CSS
<!DOCTYPE html> <html> <head> <style> /* ============== Grid Area Column ============== */ .grid-container { display: grid; grid-template-columns: auto auto auto; grid-gap: 5px; background: #333; } .grid-item { position: relative; background: #97ff99; border: 1px solid #333; text-align: center; padding: 10px; height: 50px; line-height: 50px; } .grid-container .grid-item:first-child { grid-column: 1 / span 2; } /* ============== Grid Area Column ============== */ </style> </head> <body> <h1 class="heading">Grid Area Column</h1> <p class="description">We can greate a grid area using the <code>grid-column</code> CSS property.</p> <div class="grid-container"> <div class="grid-item">1</div> <div class="grid-item">2</div> <div class="grid-item">3</div> <div class="grid-item">4</div> <div class="grid-item">5</div> </div> </body> </html>
Editor Commands
Ctrl
F
Find
Ctrl
G
Find Next
Ctrl
⇧
G
Find Previous
Ctrl
⇧
F
Find & Replace
Ctrl
]
Indent Code Right
Ctrl
[
Indent Code Left
⇧
Tab
Auto Indent Code
Ctrl
/
Line Comment
Ctrl
Alt
/
Block Comment
TutsInsider Actions
Alt
S
Run Code
Ctrl
C
Copy Editor Code
Ctrl
A
Select All Editor Code
Ctrl
S
Save/Download
Ctrl
Alt
X
Rotate
Ctrl
Alt
T
Switch Theme
Ctrl
⇧
C
Open Console
Esc
Close Console