Recent css Tricks learned

 

 1. z-index only applies to elements that are given a "position" value

2. margin: auto" will only work when a width is declared for the element.

3. padding adds to the overall width of the element. and cannot contain negative values.

4.CSS Specificity
CSS styles follow an order of specificity and point values to determine when styles override one another or take precedence.


They are like so:

Elements – 1 points
Classes – 10 points
Identifiers – 100 points
Inline Styling – 1000 points
When in doubt, get more specific with your style declarations. You can also use the !important declaration for debugging purposes if needed

Comments

tippu said…
http://css-tricks.com/specifics-on-css-specificity/
carthworks said…
http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-understanding-css-specificity/

Popular posts from this blog

உடல் அறிகுறிகள், வலிகள் மற்றும் அவற்றின் சிகிச்சைகள்: வீட்டு சிகிச்சைகள் மற்றும் அக்குபிரஷர் புள்ளிகள்

MySQL table and want to build a XML file with it in order to make a RSS feed.

REST / AJAX calls from within a Jaggery script