Monthly Archives: March 2012

Triangle

Often you are asked to create a button like this: Solution 1: The entire button is an image, with text on it. This solution increases your number of request; relies on CDN, effects accessibility. Solution 2: Use CSS3 border-radius for … Continue reading

Posted in Tips | Leave a comment

innerHTML vs innerText

This seems to be a very old topic. However I encountered a very interesting bug lately made me think about it again. What do you think the following jQuery code will display? myDiv1.html(“A&W”); myDiv2.html(“A&W Restaurant”); If you are like me, … Continue reading

Posted in JavaScript | Leave a comment