Can CSS play nice with JS?

I know it’s possible, but i must be some sort of idiot.

i have a javascript function that prints the date and time on the page. I am also using CSS to position and format that text.

how can i get the two to play nicely, whenever i try to instert in the JS file, the site breaks, and i don’t see a single thing. No errors, no nothing. Im stumped. Help.
For the Head:

 
<head>
<link rel="stylesheet" type="text/css" href"css/site.css" />
<script type="text/javascript" language="javascript" src="javascript/datetime.js"></script>
</head>

For the body:

 
<div id="footer">
blah : <script type="text/javascript">printDate();</script>
</div>

Let me know if i need to explain anything better. Thanks in advance!