1. Diffrence between Class and ID’s
Both are use for describe content and layout in a web page. Symbol for class selectors is (.) while id selectors is (#).
Class: We can use the same class on multiple elements and also multiple class on same element.
ID’s: Id’s are unique. It can only be used once in a page. The main advantages of ids are that they get priority in the cascade.
2. Use Reset.css
By default, browsers have different ways of rendering styles. Reset.CSS, basically reset the default values of web browsers and you won’t need to alter these differences for every element again.
3. Align Center any block element
You can align any block element in to center by using
margin:0 auto;
In any HTML document it will be given an automatic margin on both its left and right, ensuring that it’s always placed in the center of the screen. more...
Thanks
Joginder Poswal
Thursday, September 23, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment