Problem:
When using Canvas and making a image appear with a grayscale when loading, the images sometimes do not display.
Solution:
Use “onload” html attribute to change the image source after it gets a chance to load.
A Log of Coding Solutions
by Webhead
When using Canvas and making a image appear with a grayscale when loading, the images sometimes do not display.
Use “onload” html attribute to change the image source after it gets a chance to load.
by Webhead
A great explanation on box shadows:
by Webhead
Apparently no one cares about a user’s actual screen resolution. Usually I don’t too, but in this case I do. In creating a home page with an image as the background and expands as the user expands their window, the overflow is hidden. However for users with a low resolution this means that they cannot scroll to see what else is on the page.
The workaround for this is to detect the users screen resolution and change the css overflow attribute on the html, body tags to be “auto”. I have two monitors, one at 1600×1200 and another at 1024×768. On firefox and chrome the height values match with the javascript property screen.height. On IE the value is always 1200. I’m guessing it’s because the 1600×1200 monitor is my primary monitor.
by Webhead
Simple as pie… Adding share buttons using jQuery and CSS:
by Webhead
Developing for IE, Firefox, Safari, and Chrome is a pain! But now we have mobile devices like the iPhone and iPad. This website demonstrates a nice way to handle these:
by Webhead
.shadow { -moz-box-shadow: 3px 3px 4px #000; -webkit-box-shadow: 3px 3px 4px #000; box-shadow: 3px 3px 4px #000; /* For IE 8 */ -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')"; /* For IE 5.5 - 7 */ filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000'); }
Solution found here: http://robertnyman.com/2010/03/16/drop-shadow-with-css-for-all-web-browsers/