Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

how to insert icons pseudo content

.css:after {
    content: "86";
    color: red;
}
.css.char:after {
    content: "†";
    color: blue;
}
.data:after {
    content: attr( data-icon );
}
.js:after {
    content: attr( data-icon );
}
.red:after {
    color: red;
}
.blue:after {
    color: blue;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #insert #icons #pseudo #content
ADD COMMENT
Topic
Name
9+7 =