Adding a line of code to all pages
You should familiarize yourself with Drupal theming. Check out the Theming Guide.

Basically, you want to edit the CSS in the theme that's currently being used on your site.