When I started learning css, I genuinely though adding semicolon to the last property is wrong. My reasoning was: a) you are increasing size of your file for no reason b) you are making the browser look for a start of another property (which obviously isn't there, so it decreases performance)
One day I noticed javascript is automaticaly adding a semicolon at the end of line... and css does similiar thing.
37
u/[deleted] Apr 07 '20
Do I miss the point or is there a semicolon missing after the "left:10px"?
Please be nice to the programming noob14
u/cclloyd Apr 07 '20
1
u/[deleted] Apr 08 '20
I... think you’ll need to set a positioning mode there bud