Quote:
Originally Posted by JSWolf
Why do you need a ; after the last line in the class? Is this a Kindle thing?
|
You don't need it. It works either way.
Quote:
Originally Posted by jhowell
What you wrote will work, but technically you should have another semicolon at the end of the last declaration (before the closing brace).
|
I looked at the CSS specifications and I now believe that I was wrong about that.
Technically the semicolon is a seperator, not a terminator in a list of declarations. So leaving off the last semicolon might be considered to be more correct.
However, the parser to
consume a list of declarations is supposed to do nothing when encountering semicolons so either way will work.