I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Reflow</title> | |
| <style> | |
| #test1,#test2{position:absolute;width:300px;height:100px;margin-bottom:10px;} | |
| #test1{left: 0px;background-color:blue;} | |
| #test2{left: 320px;background-color:black;} | |
| </style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Validation Test</title> | |
| <script src="http://jqueryvalidation.org/files/lib/jquery.js"></script> | |
| <script src="http://jqueryvalidation.org/files/dist/jquery.validate.js"></script> | |
| <style> | |
| .center{position:absolute;top:50%;left:39%;} | |
| #login .error{font-size:12px;color: #d44950;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sublime | |
| import sublime_plugin | |
| import re | |
| class CompactExpandCssCommand(sublime_plugin.TextCommand): | |
| def run(self, edit, action='compact'): | |
| rule_starts = self.view.find_all('\{') | |
| rule_ends = self.view.find_all('\}') |