CodeLab
Tutorials For Everyone
Run
Learn CSS
<!DOCTYPE html> <html> <head> <style> #outer { background: #f00; box-shadow: 0 0 10px 0 #aaa; padding: 10px; animation: anim-outer 5s infinite; max-height: 120px; } #container { display: flex; justify-content: center; align-items: center; color: #fff; font-size: 20px; margin: auto; width: 300px; height: 70px; background: #333; box-shadow: 0 0 10px 0 #aaa; animation: anim 5s infinite; } @keyframes anim { 50% {height: 340px;} } @keyframes anim-outer { 50% {max-height: 200px;} } </style> </head> <body> <h1>Animatable 'max-height' Property</h1> <hr> <p>Experience the changing max-height of the outer Container.</p> <div id="outer"> <div id="container">Container</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