EDIT: I don’t what I did that is different from what i wrote below but it works now. don’t know why :-/ thank you guys for the help 🙂
I am trying to link my document to a css file. the problem is that.
This works:
<link rel="stylesheet" type="text/css" href="style.css">
This dosent:
<link rel="stylesheet" type="text/css" href="css/style.css">
And of course the file exist in the sub folder when i try to link to it.
🙂
EDIT:
HTML file
<link rel="stylesheet" type="text/css" href="/css/style.css">
</head>
<body>
<table id="menu">
<tr>
<td><a id="button">Home</a></td>
<td><a id="button">Education</a></td>
<td><a id="button">Experience</a></td>
<td><a id="button">Gallery</a></td>
<td><a id="button">Cantact Me</a></td></tr>
</table>
it seems it worked only in my html editor (Expression Web) but when i open it in a browser (chrome/firefox/ie) it doesnt work.
Style File:
body{ background-color: white;}
#menu { width:100%; background-image:url('BarBG.png'); border:0px; }
#button
{
color:white;
font-size:large;
line-height:45px;
vertical-align:middle;
text-align:center;
display: block;
width: 100px;
height: 45px;
margin-right:auto;
margin-left:auto;
}
#button:hover{
color:black;
font-size:large;
line-height:45px;
vertical-align:middle;
text-align:center;
display: block;
width: 100px;
height: 45px;
margin-right:auto;
margin-left:auto;
background-image:url('BarBGHover2.png');
cursor:pointer;
}
Trey making the link relative to the root