Tuesday, 13 May 2014

Previous Interview Question Next Interview Question
Home

CSS Pseudo Classes/Elements

All CSS Pseudo Classes/Elements

SelectorExampleExample description
:linka:linkSelects all unvisited links
:visiteda:visitedSelects all visited links
:activea:activeSelects the active link
:hovera:hoverSelects links on mouse over
:focusinput:focusSelects the input element which has focus
::first-letterp::first-letterSelects the first letter of every <p> element
::first-linep::first-lineSelects the first line of every <p> element
:first-childp:first-childSelects every <p> elements that is the first child of its parent
::beforep::beforeInsert content before every <p> element
::afterp::afterInsert content after every <p> element
:lang(language)p:lang(it)Selects every <p> element with a lang attribute value starting with "it"

Previous Interview Question Next Interview Question
Home

0 comments :

Post a Comment