Kaloyan Siderov
Kaloyan Siderov

Reputation: 31

Can I put displayable text in my CSS file?

Can I put text in my CSS file , and have that text be visible in the displayed HTML?

Upvotes: 2

Views: 194

Answers (2)

Blake
Blake

Reputation: 764

The content property is a good way of doing this. But make sure you use a !DOCTYPE tag or theres a good chance it won't work in IE8.

Upvotes: 0

Douglas
Douglas

Reputation: 37763

You can use the content property.

Upvotes: 3

Related Questions