Tuesday, May 11, 2010

Element weight in css

Never know this before, when css is rendering for a page, it actually calculating point to determine override rule.

HTML = 1 point
CLASS = 10 points
ID = 100 points

More on: http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-understanding-css-specificity/

Make html5 element available in IE

First make all new element as block element in css, Second, in javascript, using Document.createElement("name of the new element") to create all new elements.
This way can trick IE to understand these element.
You may also embed a html5.js host by google that can do that for you.