Giulia Posted November 2, 2020 Share Posted November 2, 2020 hello! I am new to coding and I am facing a problem creating an external style sheet. I have a folder named "CINO", here I ave all my .html files In this folder there is a folder, named "CSS". Here inside thereis the style.css file. the coding goes like this, but in the browser there is no sign of a change. Could anyone help me to understand where I am overlooking a mistake? <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="/css/style.css" > <title>CINO</title> <h1>CINO</h1> <nav> <a href="About.html">About</a> <a href="Work.html">Work</a> <a href="Contact.html">Contact</a> <a href="Lab.html">Lab</a> </nav> </head> <body> visual strategies </body> </html> ///// CSS File body { font-family: Helvetica; font-size:1000px; line-height: 1.5; background-color: #d94958; color: #d99f01; margin: 40px auto 40px auto; width: 620px; } h1 { font-size: 24px; font-weight: 700; } Link to comment Share on other sites More sharing options...
niche Posted November 2, 2020 Share Posted November 2, 2020 where's the ref to the cino directory in "/css/style.css"? Link to comment Share on other sites More sharing options...
dsonesuk Posted November 3, 2020 Share Posted November 3, 2020 (edited) Remove html elements, h1, nav and contents to inside body tag element then remove the first '/' slash from href to css folder. Edited November 3, 2020 by dsonesuk Link to comment Share on other sites More sharing options...
Sherin Posted November 5, 2020 Share Posted November 5, 2020 <link rel="stylesheet" href=" ./css/style.css"> the dot is identified your main project folder. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now