Reputation: 33
I'm loading up a CSS file in my Html like so:
<head>
<title>H e a d s p a c e</title>
<style>
<link rel="stylesheet" href="styles.css" type = "text/css">
</style>
</head>
whereas my css file looks as follows:
body {
width: 100%;
height: 100%;
background: #11e8bb; /* Old browsers */
background: -moz-linear-gradient(top, #11e8bb, #8200c9); /* FF3.6-15 */
background: -webkit-gradient(linear, center top, center bottom, from(#11e8bb), to(#8200c9));
background: -webkit-linear-gradient(top, #11e8bb,#8200c9); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, #11e8bb ,#8200c9); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#11e8bb', endColorstr='#8200c9',GradientType=0 ); /* IE6-9 */
}
However it doesn't actually display anything. The background simply comes through as white. After countless views of other stackoverflow's/online forums I'm helpless - any ideas as to what's wrong?
Both files are on a server and in the same directory. Any help is greatly appreciated!
Upvotes: 0
Views: 697
Reputation: 61
Don't put your links to style sheets inside a style tag.
<head>
<link rel="stylesheet" href="styles.css" type = "text/css">
</head>
Is how it should be. Your code otherwise works just fine.
Upvotes: 1