Compiler
CSS
CSS Units
Run
<!DOCTYPE html> <html> <head> <style> .ex1{ font-size: 2em; } .ex2{ font-size: 4ex; } .ex3{ font-size: 5ch; } .ex4{ font-size: 2rem; } .ex5{ font-size: 4vw; } .ex6{ font-size: 4vh; } .ex7{ font-size: 3vmin; } .ex8{ font-size: 2vmax; } .ex9{ font-size: 75%; } </style> </head> <body> <h2>Relative Length Units:</h2> <p class="ex1">emphemeral unit (em)</p> <p class="ex2">X(axis)-height of the current font (ex)</p> <p class="ex3">relative to the width of the 0 (ch)</p> <p class="ex4">browser base font-size (em)</p> <p class="ex5">width of the viewport (vw)</p> <p class="ex6">height of the viewport (vh)</p> <p class="ex7">viewport’s smaller dimension (vmin)</p> <p class="ex8">viewport’s larger dimension (vmax)</p> <p class="ex9">percentage (%)</p> </body> </html>
Editor Commands
Commands
Shortcut Key (Win)
Shortcut Key (Mac)
selectAll
Ctrl-A
Cmd-A
singleSelection
Esc
-
killLine
-
Ctrl-K (Mac)
deleteLine
Ctrl-D
Cmd-D
undo
Ctrl-Z
Cmd-Z
redo
Ctrl-Y
Shift-Cmd-Z, Cmd-Y
undoSelection
Ctrl-U
Cmd-U
redoSelection
Alt-U
Shift-Cmd-U
goDocStart
Ctrl-Home
Cmd-Up, Cmd-Home
goDocEnd
Ctrl-End
Cmd-End, Cmd-Down
goLineStart
Alt-Left
Ctrl-A
goLineEnd
Alt-Right
Ctrl-E
goLineRight
-
Cmd-Right
goLineLeft
-
Cmd-Left
goLineUp
Up
Ctrl-P
goLineDown
Down
Ctrl-N
goPageUp
PageUp
Shift-Ctrl-V
goPageDown
PageDown
Ctrl-V
newlineAndIndent
Enter
-
save
Ctrl-S
Cmd-S