Frontend Development by bin Uzayr Sufyan;

Frontend Development by bin Uzayr Sufyan;

Author:bin Uzayr, Sufyan;
Language: eng
Format: epub
Publisher: Taylor & Francis Group
Published: 2022-10-15T00:00:00+00:00


Pseudo-Classes

If you’re already familiar with some of the pseudo-classes such as :link, :visited, :hover, :active, and :focus.

A few more pseudo-class selectors were added in version CSS3. The main class is the :root selector, which points to the root element of a document. In HTML, it could be <html>. Since :root is the main element, it allows a user to select the root element of an XML document without knowing its name. It also permits scrollbars when needed in a document.

As a complement element to the :first-child selector, the :last-child was added in CSS3. It can be used to select the last named element of a parent element. This rule would modify the font for the last paragraph of each article included in <div class='article'>/div> tags. Each article has a concluding paragraph with some information that needs to be universally stylized.

The :target pseudo-class selector was added as a new user interaction pseudo-class selector. When a user clicks on a same-page link, a rule like the first line below will function nicely; the link would look like the second line, and the highlighted span would look like the third.

A functional notation for selecting particular elements that fail a test has been created. The negation pseudo-class selector is almost any other selector that has been implemented. For example, if you want to put a border around images that do not have a border specified, use a rule like this.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.