I'm fairly new to this, but based on my research, this code should be functioning correctly. I am attempting to link a CSS stylesheet to an .erb file. Here is the code snippet I am using:
<link rel="stylesheet" type="text/css" href="../css/stylesheet.css">
I have also attempted
href="./css/stylesheet.css"
and
href="css/stylesheet.css"
Just for clarification, my .erb file and CSS file are located in separate subdirectories within the same main directory. Below is the code from my stylesheet, in case that might be the issue:
body {
border-style: solid;
border-color: black;
border-width: 5px;
text-align: center;
background-color:powderblue;
}
h1 {
font-family: verdana;
}
h2 {
font-family: sans-serif;
}