almost 11 years ago
- Pseudo-classes are some special classes which are used to for special effect. You can also use it with css class.
selector:pseudo-element {property:value;}
:visited - (eg- a:visited)You can select all visited anchor tag
:link - You can select all unvisited anchor tag
:hover - You can select mouse over anchor tag
:active - You can select active anchor tag
:focus - You can select input element which one is focused
:first-line - (eg- p:first-line)- You can select first line of all paragraph
:first-letter (eg- p:first-letter)- You can select first letter of all paragraph
:first-child - (eg- li:first-child)- You can select first child of its parent
:after - (eg- li:after)- You can add some content after all lis.
:before - (eg- li:before)- You can add some content (as image also) before all lis.
:lang(language) - You can select every element with same lang attribute
element:nth-child(an + b) { style properties }
tr:nth-child(even) - You can select the even rows of a HTML table.
tr:nth-child(odd) - You can select the odd rows of a HTML table.
tr:nth-child(2n) - You can select the even rows of a HTML table.
tr:nth-child(2n+1) - You can select the odd rows of a HTML table.
span:nth-child(0n+1) - You can select a span element which is the first child of its parent; this is the same as the :first-child selector.
span:nth-child(1) - You can select Equivalent to the above.
span:nth-child(-n+3) - Matches if the element is one of the first three children of its parent and also a span.
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)