Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

Why we use Pseudo-elements in CSS?

user-image
Question ajoutée par Shahid Aziz , Web Developer , Niche-vision
Date de publication: 2014/05/07
Muhammad Waqas
par Muhammad Waqas , Dot Net and MVC Developer , Osys Technologies

Apart from the multiple instances of the same html element if you want to apply some effect on portion of an element(first letter etc) or on some selectors you use pseudo-elements

Feysal Mama
par Feysal Mama , Software Developer , Minister of science and higher Education - Ethiopia

pseudo-element in CSS is a keyword added to a selector that lets we style a specific part of the selected element(s).

Toha Yaseen
par Toha Yaseen , Executive , The Jammu And Kashmir Bank Ltd

CSS pseudo-elements are used to add special effects to some selectors.

for example

p::first-line {color:#ff0000;font-variant:small-caps;}

this will add effect to only first line of the <p>

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?