CSS 3 · Selectors and the box model
Add generated content
Insert content before an element with no extra HTML.
.note::before {
content: "Note: ";
font-weight: bold;
}
CSS 3 · Selectors and the box model
Insert content before an element with no extra HTML.
.note::before {
content: "Note: ";
font-weight: bold;
}
Was this page helpful?