Archive for the ‘Html’ Category
HTML: Force download for .gif, .png, .pdf
Thursday, December 3rd, 2009Set content-disposition: attachement; filename=”…”
HTML: Firebug Console Log
Saturday, April 18th, 2009if (window.console && window.console.log)
window.console.log('hilight selection count: ' + $obj.size());
HTML: AJAX Modal Dialog Box
Wednesday, March 25th, 2009Here are some JQuery puglins for creating Modal Dialog Box:
- Facebox: Facebook L&F, does have some images for corners.
- SimpleModal: Seems simple and lightweight.
- ThickBox: Seems complete but quite heavy (also, not very well maintained, last change log was from 2007).
See also:
OpenWeb: Web-Based HTML Editors
Wednesday, February 11th, 2009HTML: Link with OnClick and blank Href
Thursday, October 30th, 2008<a onclick=”myFuction(event);return false;” href=”">Some Text</a>
The return false; prevents the browser to follow the href link. Note that have the method return false does not work.
Html: Create form definitions outside table.
Sunday, October 12th, 2008Make sure that you keep the
and not
HTML: Windows & Mac “Safe” Fonts
Saturday, October 4th, 2008Sans Serif Examples
font-family: Arial, Helvetica, sans-serif;
font-family: ‘Arial Black’, Gadget, sans-serif;
font-family: Impact, Charcoal, sans-serif;
font-family: ‘MS Sans Serif’, Geneva, sans-serif;
font-family: ‘MS Serif’, ‘New York’, sans-serif;
font-family: ‘Trebuchet MS’, Helvetica, sans-serif;
font-family: Verdana, Geneva, sans-serif;
font-family: ‘Lucida Sans Unicode’, ‘Lucida Grande’, sans-serif;
font-family: Tahoma, Geneva, sans-serif;
font-family: ‘Arial Black’, Gadget, sans-serif;
font-family: Impact, Charcoal, sans-serif;
font-family: ‘MS Sans Serif’, Geneva, sans-serif;
font-family: ‘MS Serif’, ‘New York’, sans-serif;
font-family: ‘Trebuchet MS’, Helvetica, sans-serif;
font-family: Verdana, Geneva, sans-serif;
font-family: ‘Lucida Sans Unicode’, ‘Lucida Grande’, sans-serif;
font-family: Tahoma, Geneva, sans-serif;
Monospace fonts
font-family: Courier, monospace; Courier
font-family: ‘Courier New’, Courier, monospace; Courier New, Courier
font-family: ‘Lucida Console’, Monaco, monospace; Lucida Console, Monaco
font-family: ‘Courier New’, Courier, monospace; Courier New, Courier
font-family: ‘Lucida Console’, Monaco, monospace; Lucida Console, Monaco
HTML: Why not to use font-family “Verdana”
Saturday, October 4th, 2008http://www.xs4all.nl/~sbpoley/webmatters/verdana.html
In short, Verdana is much bigger than the other font. Putting the font-size at 85% will resolve this issue, however, if the user does not have Verdana, then its default font will be way too small.