You probably need to apply that to body, and you can insert it in the Custom CSS field under Miscellaneous Settings.
Remember to first disable the WordPress defined background image/colour (if set) in Appearance > Background.
PS: that rule will only work on part of the browsers. Have a look here for a complete CSS3 linear gradient background generator.