Forword The following javascript examples and notation demonstrate a few alternatives to well known methods for common tasks. Advanced Notation Tilde Operator The tilde operator “~” literally equates to “-(n+1)”. For example: [codesyntax lang=”javascript”] var a = ~1; //returns -2 var myString = “hello world”; ~myString.indexOf(“hello”); //returns true [/codesyntax] Large Denary Numbers Large denary numbers […]
I'm Live!
Watch Now
Month: May 2011
Relatively Positioned Absolute Elements
Foreword Absolutely positioned elements can be quite useful, but what if you have something centered or off to one side and you need to just nudge an absolutely positioned element. The following will show you a handy technique for moving absolute elements relative to the elements around it using nothing but CSS. Getting Started First […]