September 2009
1 post
http://typeface.neocracy.org/
Sep 4th
August 2009
3 posts
[.css] Taming Advanced CSS Selectors →
Great article on how to work with selectors and dependencies. This should be made into a cheat sheet.
Aug 17th
1 tag
[.js] Conditional Statement Shortcuts
If you’re writing a simple if statement that sets one variable to one of two conditions, you can use something called a ternary operator. It’s basically a one line conditional statement. Say you have some JavaScript that checks a user’s login status: var status; if (login) { status = 'signed in'; } else { status = 'signed out'; } You can...
Aug 15th
2 tags
[.js] Make Your Links Boxes
Text hyperlinks are boring. While they have their place in a document, common practice on the front page of a website still dictates a large text link for many. Why not put it a big box instead? First we’ll start with some CSS defining the block and it’s properties (and the background image): .linkBox { background: #F5F5D3; padding: 5px; border: 1px solid #0B3636; float:...
Aug 14th