All Entries Tagged With: "CSS tips"
Class Selectors
We learnt what ‘Element Selectors’ are and how to group declarations and selectors, in our tutorial Element Selectors in CSS. But as you advance in HTML and CSS, you will need more specialized rules to style an element. Apart from document elements (element selectors) there are two other types of selectors you can define on [...]
Universal Selector in CSS2
CSS2 had introduced a new selector, the universal selector to match any element in your page. The selector is indicated as an asterisk ‘*’. The universal selector could be used to list every element in your page. For example, * {font-size: 12px} This declaration would set the font size of all the elements used in [...]
Element Selectors in CSS
Why is CSS preferred by all the designers? Well that is because of its ability to separate presentation from the content and most importantly its power to edit the document style by changing a single line of code. Don’t believe me? Find it yourself! An element selector is an HTML element. There are other types [...]



