Hi there alleria21,
as I said in my previous post, it worked OK for me.
I created two files from the exact code that you provided and named the css file "styles.css".
The html page was tested in IE9, Firefox 16.0.2, Opera 12.02 and Safari 5.1.7.
You must be in error, somewhere, if it is not working for you. ;)