46
Programming / simple css/html issue anyone want to look at it?
« on: July 05, 2011, 11:03:49 PM »
Okay so I've been fooling around with css and html and I've noticed an issue.
Here's my html file:
And my css file:
Basically here's the problem, the background color doesn't change when I view the webpage. The text on the header does though. I don't see any typos or anything like that, and I'm viewing in in google chrome. Anyone know why this might not be working?
I know it'd probably have been a better idea posting this on some coding forum but I'll let CG take a shot at it first.
Here's my html file:
Code: [Select]
<html>
<head>
<link rel="stylesheet" type="text/css" href="file:///C:/Users/Max/Desktop/style.css" />
<h1>This webpage is useless, I'm using to test external css styles.</h1>
<title>Test Page</title>
</head>
<body>
This is some sample body text.
</body>
</html>
And my css file:
Code: [Select]
<style type="text/css" />
body {background-color:#b0c4de;}
h1 {color:#0c8316;}
</style>
Basically here's the problem, the background color doesn't change when I view the webpage. The text on the header does though. I don't see any typos or anything like that, and I'm viewing in in google chrome. Anyone know why this might not be working?
I know it'd probably have been a better idea posting this on some coding forum but I'll let CG take a shot at it first.