Hi,
Thanks for the tips but it still isn't working. However, when I save it to a physical file, it works fine!
However, I've just realised that the stylesheet can't be read in its current place (cgi-bin). I've changed the location in <link rel=\"stylesheet\" href=.... and it works!
Stupid mistake and oversight on my part but I hope if anyone else has the same problem they can now find the solution on this site.
Chris