Linking my .HTML to my CSS Having a bit of trouble!?Please Help?

Wesley Kelemen

New member
Ok so ive been working at this for hours..Im trying to link my stylesheet and nothing is happening..Its in the same folder and when i click view source its showing everything is fine...>Can someone take a look at it and tell me whats going on.. Im just using NotePad on Windows 7 and got IE9



<html>
<head>
<link ref="stylesheet" type="text/css" href="sample.css" />
</head>
<body>
<h1> Basic CSS Font Properties</h1>
<p>The following table shows you the basic CSS font properties that allow
you to change the appearance of text in your documents.</p>

<table>
<tr>
<th>Property</th>
<th>Purpose</th>
</tr>
<tr>
<td class="code">font-family</td>
<td> Specifies the font used</td>
</tr>
<tr>
<td class="code">font-size</td>
<td>Specifies the size of the font used</td>
</tr>
<tr>
<td class="code">font-style</td>
<td>Specifies whether the font should be normal, italic or oblique</td>
</tr>
<tr>
<td class="code">font-weight</td>
<td>Specifies whether the font should be normal, bold, bolder, or lighter</td>
</tr>
</table>
</body>
</html>



And heres my style sheet saved as "sample.css"

body {color:#000000;
background-color:#ffffff;
font-family:arial, verdana, sans-serif; }

h1 {font-size:18pt;}

p {font-size:12pt;}

table {
background-color:#efefef;
border-style:solid;
border-width:1px;
border-color:#999999; }

th { background-color:#cccccc;
font-weight:bold;
padding:5px; }

td {padding:5px;}

td.code { font-family:courier, courier-new, serif;
font-weight:bold; }

I am just learning and it could be a simple mistake but without knowing whats going on im stuck.
 
Back
Top