The days of a one-icon-suits-all are (yet again) over. Now you need a different icon for: favicon ico (the little icon shown in most & legacy browsers) an Apple touch icon for iOS devices an larger icon sizes for Chrome (Tools > Create Application Shortcuts) and Firefox web apps I’m trying to make our lives … More Favicons, Shortcut Icons and Apple Icons
I discovered yesterday that the jQuery data() method can be used to read HTML data- attributes. Prior to this, I had always used attr(). What is important to note is that the data() method will not make changes to the attribute value. Take a look at the following example: var a; a = $(“div”).data(“testValue”); //a … More .data() vs .attr() for HTML data attributes
Metro seems to be using HTML5 History API in a pretty nice way! News stories slide in from the right and then the URL updates to the URL of the story. If you didn’t know, History API is a beautiful alternative to the # or #! syntax people like Twitter used to use. Check out … More Metro’s HTML History
You know when you’re giving your postcode, spelling your name or email over the phone, and you come across one of these moments: Me: “…P…” Them: “B?” Me: “No, P. As in…” And then all words beginning with ‘P’ leave your mind… except some useless ones like ‘pea’ (“Bee?”) or ‘pneumonia’? Don’t you feel such … More Alpha Bravo Create
I only just noticed that Chrome has implemented a speech/voice input functionality in HTML inputs! It appears to have been added in 2011 sometime. Check it out here (in Chrome, obviously – other browsers will just see an input) Cool, eh? More information on SitePoint.
white-space: pre; Will render new lines on new lines! Much like the <pre> tag, but without the default stylings. Supported by all major browsers for a long time according to MDN. Examples on JSFiddle:
Annoyingly, it seems IE10 ignores :hover::after rules unless a :hover rule is also given. Tested on IE 10.0.9200.16384 Reported on StackOverflow by Bram Vanroy here.
Finally! I have my HTML5 History API Library complete! It’s only in phase 1 and could do with a lot more tweaking but it is fully functional as of today! I’ve hosted it on CodePlex here. With the History API documentation here. I plan to write it up in more detail later (keep an eye … More HTML5 History API Library