CSS Tutorial 35 - Attribute Selectors

Publié le: 12 décembre 2017
sur la chaîne: Struct Feed
55
1

In this CSS tutorial, I go over selecting HTML elements with attaribute selectors. To use attaribute as selectors, you just need to put the attribute in square brackets....

[attribute = "attribute value"] {
/* Your CSS here */
}

you can also add ~ before equal (=) sign and this will select all elements where the attribute has the word separated by space or by it self
[attribute ~= "attribute value"]

you can also add | before equal (=) sign and this will select all elements where the attribute has the word separated by dash (-) or by it self
[attribute |= "attribute value"]

using [attribute ^= "attribute value"] selects all that begin with the value supplied.

using [attribute $= "attribute value"] selects all that end with the value supplied.

using [attribute *= "attribute value"] selects all that contain the value supplied.


Sur cette page du site, vous pouvez voir la vidéo en ligne CSS Tutorial 35 - Attribute Selectors durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Struct Feed 12 décembre 2017, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 55 fois et il a aimé 1 téléspectateurs. Bon visionnage!