HTML: Firebug Console Log
Saturday, April 18th, 2009if (window.console && window.console.log)
window.console.log('hilight selection count: ' + $obj.size());
if (window.console && window.console.log)
window.console.log('hilight selection count: ' + $obj.size());
In short, my finding is that Canvas is good to draw a single [animated or not] image and SVG is better for interactive 2D components or applications (e.g. Interactive Charting, Google Docs Presentations, and Zoho Show). I might be wrong, feel free to comment.
Canvas:
Svg:
Canvas vs SVG
I having been hitting a weird and annoying CSS bug (I think)
HTML
<div id="header">
<div id="title">My Lawyer.com</div>
</div>
CSS
#title{
margin-top: 10px;
}
Then, somehow, the margin-top of 10px get assigned to the #header div?
Now, the weird thing, is that if I add any text (i.e ) just before the #title div class, then, the margin-top get appropriately assign to the #title div???
Now, even weirder, same behavior on Firefox 3.0.1, Google Chrome, and Safari????
Here is another example
The Blue box should be just below
<div style="margin-top:0px;background-color:blue;width:50px;height:50px">
<div style="margin-top:20px;background-color:red;width:10px;height:10px">
</div>
</div>
The Blue box should be just below this text (but it is 20 px down) and the red box should be 20px down the blue box, but it is 0px.
Any help greatly appreciated. Easy to work around, but kind of annoying.
SGWeb Google project implementing SVG in a Flash player (currently 25k).
W3C XForms Implementation link
Some interesting ones: