Set the style of the "text" rendered from :after{content:"text"} - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Text

Description

Set the style of the "text" rendered from :after{content:"text"}

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
a:after {<!--from  w w  w . ja v a  2  s.c  om-->
   content:"(2)";
   color:Chartreuse;
}
</style> 
 </head> 
 <body> 
  <a></a>  
 </body>
</html>

Related Tutorials