Monthly Archive: September 2013

Sep 14

Getting Mouse event coordinates(X,Y) inside a div using Jquery

$(“#specialElement”).click(function(e){ var x = e.pageX – this.offsetLeft; var y = e.pageY – this.offsetTop; });

Sep 14

CSS Specifics for Internet Explorer (IE hacks)

#1 IE Conditional Comments IE conditional comment is probably the most commonly used to fix the IE bugs for specific versions (IE6, IE7, IE8). Below are some sample code to target different versions of Internet Explorer: #2 CSS Rules Specific to Explorer (IE CSS hacks) Another option is to declare CSS rules that can only …

Continue reading »