Hello. This might be an easy question, but I'm new with style scripts. I am trying to get my external style script to work. I have this code in the <HEAD> section of my HTML document:
<LINK REL=StyleSheet HREF="style.css" TYPE="text/css">
In the same directory as the HTML file, I have a style.css file located there. The CSS file has the following:
a{text-decoration:none}
.wrap1{position:relative;}
.wrap2{position:absolute;}
#dropmenu0, #dropmenu1, #dropmenu2, #dropmenu3, #dropmenu4, #dropmenu5, #dropmenu6, #dropmenu7{z-index:100;}
.skin0
{
position:absolute;
width:165px;
border:2px solid black;
background-color:menu;
font-family:Tahoma;
line-height:20px;
cursor:default;
font-size:14px;
z-index:100;
visibility:hidden;
}
.menuitems
{
padding-left:10px;
padding-right:10px;
}
Now when I put that following script into an HTML document using <STLYE> tags and the <-- symbols, it works fine. But when I move it to an external file, it is as if the script is not there. It just can't read it. I've looked at how to use external style scripts, and they all say the same thing but this won't work for me. Any help would be much appreciated.
<LINK REL=StyleSheet HREF="style.css" TYPE="text/css">
In the same directory as the HTML file, I have a style.css file located there. The CSS file has the following:
a{text-decoration:none}
.wrap1{position:relative;}
.wrap2{position:absolute;}
#dropmenu0, #dropmenu1, #dropmenu2, #dropmenu3, #dropmenu4, #dropmenu5, #dropmenu6, #dropmenu7{z-index:100;}
.skin0
{
position:absolute;
width:165px;
border:2px solid black;
background-color:menu;
font-family:Tahoma;
line-height:20px;
cursor:default;
font-size:14px;
z-index:100;
visibility:hidden;
}
.menuitems
{
padding-left:10px;
padding-right:10px;
}
Now when I put that following script into an HTML document using <STLYE> tags and the <-- symbols, it works fine. But when I move it to an external file, it is as if the script is not there. It just can't read it. I've looked at how to use external style scripts, and they all say the same thing but this won't work for me. Any help would be much appreciated.
Comment