lucy24 - 9:34 am on Jun 2, 2013 (gmt 0)
I had this in my header.php on top
Oh, lord, what a mess. Is this copy-and-paste from someone else? There are two separate CSS blocks-- in addition to the two external stylesheets. (My personal record is eighteen. That is, ahem, in code that I've personally seen i.e. snooped into NOT code that I've personally written.)
CSS absolutely belongs inside the <head> element. For some reason styles will work even if they are in the body, but nobody would ever do this in real life. Scripts can also go almost anywhere; it depends on what the script does.
I don't see anything in there that would force closing of a <head> tag.
Where exactly does the header.php go? That is, what html comes immediately before and after it? Based on what you've shown here, it looks as if the file should go inside the <head> section, probably right before it closes. Is there anything else you missed or left out? For example, if header.php ends with the line </head> and then the html itself says </head> again.
:: digression ::
When I make any kind of include file (ssi or php), I try hard to keep it symmetrical. If there's a div involved, put both the opening and closing within the include file. If it's part of a table, let the include file make complete rows-- or at least a <td> for every </td>. I have no idea whether this is SOP or utterly unnecessary; it's what works for me.