I am new to CSS and I\'m following a book example:
Iv\'e copied the following from the book and saved it as HTML. all the css properties seem to work except the \"conten
content
is used with :before
or :after
like so:
div:after
{
content: "Hello, world!";
}
Regardless, I've only used content
for special cases (to clear floated elements, for example). I've never actually used this to insert content. You generally want to separate content and presentation anyway, so I think this is a bad idea. Which book are you reading? :)