Thursday, February 17, 2011

Two handy CSS hacks for Internet Explorer

Web developers often face with deficiencies of Internet Explorer. There are many CSS hacks for IE allowing to overcome deficiencies in most cases, but I always use two hacks which are valid for all IE versions. That are * html and \9. Examples:
 
* html .ui-spinner {
    vertical-align: middle;
}

.ui-spinner {
    vertical-align: middle\9;
}
 
Only IE understand them. Other browsers ignore these syntax.

2 comments:

  1. Does not work at all...

    ReplyDelete
  2. The * html does not work, but the \9 works for IE < V11. Perfect :)
    Thank you very much!!!

    ReplyDelete

Note: Only a member of this blog may post a comment.