SlideShare uma empresa Scribd logo
1 de 6
::before
::after
nilocoelhojunior@gmail.com
O que são pseudo-elementos?
Pseudo-Classes
Tem como alvo os elementos inteiros ou estados dos
elementos.
Pseudo-Elementos
Seleciona as subpartes de um elemento.
:before ou ::before?
Como utilizar ::after e ::before?
• content: “”
- exclusiva
- fundamental
• demais propriedades
Content
• String
http://jsfiddle.net/tableless/3JD8K/light/
• url()
http://jsfiddle.net/tableless/UL6Yr/light/
• counter()
http://jsfiddle.net/tableless/W8NCf/light/
• attr(atributo)
http://jsfiddle.net/tableless/8g8np/light/
• Formatar com css
http://codepen.io/nilocoelhojunior/pen/GABCJ

Mais conteúdo relacionado

Destaque

Destaque (7)

BRAYAN
BRAYANBRAYAN
BRAYAN
 
Enlaces alumnos
Enlaces alumnosEnlaces alumnos
Enlaces alumnos
 
3643
36433643
3643
 
Economic times mumbai - 17th feb 12 - should you go for realty debentures
Economic times   mumbai - 17th feb 12 - should you go for realty debenturesEconomic times   mumbai - 17th feb 12 - should you go for realty debentures
Economic times mumbai - 17th feb 12 - should you go for realty debentures
 
20120103150040111
2012010315004011120120103150040111
20120103150040111
 
4144
41444144
4144
 
Golf registration form
Golf registration formGolf registration form
Golf registration form
 

Before e after