Compiler
CSS Properties
table-layout
Run
<!DOCTYPE html> <html> <head> <style> table { border-collapse: collapse; border: 1px solid black; } th,td { border: 1px solid black; } .ex1 { table-layout: auto; width: 150px; } .ex2 { table-layout: fixed; width: 150px; } .ex3 { table-layout: auto; width: 100%; } .ex4{ table-layout: fixed; width: 100%; } </style> </head> <body> <h1>The table-layout Property</h1> <h2>table-layout: auto; width: 150px</h2> <table class="ex1"> <tr> <th>Id</th> <th>Name</th> <th>Department</th> </tr> <tr> <td>1</td> <td>Victor</td> <td>Computer Science</td> </tr> <tr> <td>2</td> <td>Harry</td> <td>Electrical</td> </tr> </table> <h2>table-layout: fixed; width: 150px</h2> <table class="ex2"> <tr> <th>Id</th> <th>Name</th> <th>Department</th> </tr> <tr> <td>1</td> <td>Victor</td> <td>Computer Science</td> </tr> <tr> <td>2</td> <td>Harry</td> <td>Electrical</td> </tr> </table> <h2>table-layout: auto; width: 100%</h2> <table class="ex3"> <tr> <th>Id</th> <th>Name</th> <th>Department</th> </tr> <tr> <td>1</td> <td>Victor</td> <td>Computer Science</td> </tr> <tr> <td>2</td> <td>Harry</td> <td>Electrical</td> </tr> </table> <h2>table-layout: fixed; width: 100%</h2> <table class="ex4"> <tr> <th>Id</th> <th>Name</th> <th>Department</th> </tr> <tr> <td>1</td> <td>Victor</td> <td>Computer Science</td> </tr> <tr> <td>2</td> <td>Harry</td> <td>Electrical</td> </tr> </table> </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