View Single Post
Old 12-10-2019, 09:01 AM   #42
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,117
Karma: 92190133
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by JSWolf View Post
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 View Post
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.
jhowell is offline   Reply With Quote