content css before code example
Example 1: ::before content
/* Add a heart before links */
a::before {
content: "♥";
}
Example 2: :before css
h2:before {
content: "Read: ";
color: #F00;
}
/* Add a heart before links */
a::before {
content: "♥";
}
h2:before {
content: "Read: ";
color: #F00;
}