Search
 
SCRIPT & CODE EXAMPLE
 

CSS

difference between :after and ::after

Pseudo-elements were denoted with a single colon in CSS2,
but have been changed in CSS3
"in order to establish a discrimination between
pseudo-classes and pseudo-elements".
For compatibility reasons a single colon is still allowed for the
pseudo-elements defined in CSS 1 and CSS2.

CSS2
The ':before' and ':after' pseudo-elements can be used to
insert generated content before or after an element's content.

CSS3
Pseudo-elements

A pseudo-element is made of two colons (::) followed by
the name of the pseudo-element.

This :: notation is introduced by the current document in order
to establish a discrimination between pseudo-classes and pseudo-elements.
For compatibility with existing style sheets, user agents must also
accept the previous one-colon notation for pseudo-elements introduced in
CSS levels 1 and 2 (namely, :first-line, :first-letter, :before and :after).
This compatibility is not allowed for the new pseudo-elements introduced in
this specification.
Comment

PREVIOUS NEXT
Code Example
Css :: color code css 
Css :: background overlay image 
Css :: laravel enum column 
Css :: all rights reserved 
Css :: getting two scroll bars 
Css :: Link design like a Button" 
Css :: importing scss into vue component 
Css :: change default arrow icon for accordion in bootstrap 
Css :: css add space to the top 
Css :: transition timing functions 
Css :: transform multiple css 
Css :: css keyframes 
Css :: transition css 
Css :: tailwindcss table 
Css :: how to change background color in css 
Css :: sticky footer not working bootstrap 
Css :: how hide in html 
Css :: how to make a flex container full page 
Css :: css media queries laptop 
Css :: media query for max width and height 
Css :: how to add color in css 
Css :: change font size in textarea html 
Css :: How do I make my background color darker in CSS 
Css :: aligne center css 
Css :: sass mixin 
Css :: inline input form css 
Css :: border-width 
Css :: bootstrap table striped change color 
Css :: animate zoom in and zoom out in css 
Css :: Overflow-y scroll always show even it not overflow 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =