offsetHeight properties of the object.
Anyway, here is the code for the example …
<canvas id="canvas" width="400" height="300"></canvas>
Continue reading “Drag-n-Drop with HTML Canvas”
I’m putting up all tools and scriptlets I make for helping me with web developmet up in the Lab section of my site.
Check ’em out. You might find them helpful.
Setting minimum and maximum widths for a web page in IE6 using proprietary CSS expressions, and adding the stylesheet using Internet Explorer conditional comment tag.
In a previous article I showed you how easy it is to create a constrained fluid layout i.e. one with a minimum and maximum widths. While this works on all standards compliant browsers, it doesn’t work in Internet Explorer 6. Continue reading “Minimum and Maximum widths in IE6 CSS”
How to highlight comments made by the article author in your blog. This method doesn’t use hard coded emails making it flexible and easier to implement. It also uses IDs so the comments can’t be faked.
When I was looking for a way to highlight the author comments in this wordpress template I was creating, I had a search on google. Most of the results were Continue reading “Highlighting author comments on WordPress”
How to have a fluid web layout, and still have control over the layout width.
Users of the web all have different screen sizes, and not everyone uses the browser in the maximised state, especially those with large screen sizes. There are also a wide variety of portable devices with web browsing capabilities e.g. the Nokia n800, n810 and of course the iphone. Even many of the Portable Continue reading “Constrained Fluid Layout”
While it would be nice if there was a cross-browser cross-platform font downloading system for the web, the current system of Cascading Style Sheets isn’t too bad. It does allow you to select a number of fonts that the browser can cascade through.
This gives you the option to select fonts that fit the look you’re after, but may not be widely available. You can cascade down to fonts that are more widely available fonts.
Or you may wish to use a font that is available on only one platform. In such a case you could check to see if there are similar fonts available in other systems which can be used as a fallback. You can check the commonly available fonts on various systems in this font list. This will also flag the fonts not available on your computer.
If you want to check the similarity between a number of fonts to narrow your choices or to determine the order of the cascade, this font comparer will help your decision.