What are the best practices for cross-browser web sites? [closed]
Use a library like jQuery abstract away the differences in the DOM, AJAX and JavaScript.
Use a library like jQuery abstract away the differences in the DOM, AJAX and JavaScript.
Late to the party, but maybe someone will find it useful! You can actually do it with multiple shadows on the box-shadow: box-shadow: inset 0px 33px 25px 0 #000, inset 0 66px 15px 0px #ccc, inset 0 99px 5px 0px #fff; codepen example : https://codepen.io/InFecT3D/pen/JQdmeL Side note: it might be a little “hacky” approach, but … Read more
I believe Sammy.js ( http://sammyjs.org) (MIT-licenced) has the best focus on what you want to do, with its 2 main pillars being: Routes Events I could quote from the docs but it’s pretty straightforward: setup clientside routes that relate to stuff to be done, e.g: update the view through ajax link events to call routes, … Read more
The standard doesn’t define a maximum length, leaving implementation up to browsers and mail clients (See IETF RFC 2368). Microsoft products do have set limits: IE GET limit is 2,083 http://support.microsoft.com/kb/208427 Outlook express: 456 characters http://support.microsoft.com/kb/q182985/ Other browsers are likely to work up to lengths beyond that of a reasonable email body. The iPhone doesn’t … Read more
These are some that I found: https://github.com/alexgibson/notify.js https://github.com/ttsvetko/HTML5-Desktop-Notifications
There’s an excellent chart on wikipedia that lists common image types and their support by browser. The file types you listed (jpg, gif and png) seem to be the main formats supported by nearly every browser, albeit with certain caveats: Internet Explorer supports PNG images but is unable to correctly display images with gamma correction … Read more
The fact is that browsers can’t talk to (cryptographic) smart cards for other purposes than establishing SSL. You shall need additional code, executed by the browser, to access smart cards. There are tens of custom and proprietary plugins (using all three options you mentioned) for various purposes (signing being the most popular, I guess) built … Read more
All major browsers have had support for years except <= IE8. Workaround could be for instance RaphaelJS. Sources: http://caniuse.com/#search=svg https://github.com/DmitryBaranovskiy/raphael
[UPDATE] The original question, and the answer below applied specifically to the IE11 preview releases. The final release version of IE11 does in fact provide the ability to switch browser modes from the Emulation tab in the dev tools: Having said that, the advice I’ve given here (and elsewhere) to avoid using compatibility modes for … Read more
Since CSS3 was introduced, the best way to add rounded corners using CSS is by using the border-radius property. You can read the spec on the property, or get some useful implementation information on MDN: If you are using a browser that doesn’t implement border-radius (Chrome pre-v4, Firefox pre-v4, IE8, Opera pre-v10.5, Safari pre-v5), then … Read more