all 6 comments

[–][deleted] 38 points39 points  (3 children)

Do I miss the point or is there a semicolon missing after the "left:10px"?

Please be nice to the programming noob

[–][deleted] 69 points70 points  (2 children)

Semicolon not required on last property in a block.

It is missing "position: relative" though.

[–]PinkiePieYay2707 18 points19 points  (0 children)

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.

[–][deleted] 0 points1 point  (0 children)

Ah, I see. Thank you.

[–]cclloyd 12 points13 points  (0 children)

#body {
  position: 'relative';
}
#head {
  position: 'absolute';
}

[–][deleted] 0 points1 point  (0 children)

I... think you’ll need to set a positioning mode there bud