Error message { expectedcss(css-lcurlyexpected)

My code in CSS is not rendering in my html page and keep getting this error message. Please help. I am following a bootcamp course and entered it exactly as he is showing us but it’s not working for me. What am I missing ?

Code in CSS:

nav { font-family: 'Raleway', sans-serif;
    font-size: 1.5em;
    text-transform: uppercase;
    border-bottom: 2px solid #f1f1f1;
    width: 30%;
    margin-left: calc(10%/6);
    padding: 1.2em 0;
}

Code in HTML:

<!DOCTYPE html>
<html>
<link rel="stylesheet" href="C:\Users\daisy\OneDrive\Desktop\Daisyphotoblog.css">
<head>
    <title>Photo Blog</title>
</head>
 
<body>

    <nav>Daisy Fry</nav>


</body>
</html>

you will need to give more details, we are not aware of the testing conditions of this bootcamp

I’ve edited your post to improve the readability of the code. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

1 Like

just trying to change the Daisy Fry nav in my document according to the CSS rules i entered such as th font family , font size, I also want to add the solid border at the bottom. None of it rendered on my page…

use a relative path for the href

where is your css file relative to your css file?

1 Like

It works now. I got it. oh my, that took me ages. Thank you!