Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I'm probably missing something really obvious but why won't this code work?
<link type="stylesheet" href="css/main.css">
Basically, I'm trying to get a stylesheet that is called main.css in a folder called css.
I don't know why it won't work so please help me!
Probelm Solved
Wrong syntax:
<link rel="stylesheet" type="text/css" href="css/main.css" />
^^^ ^^^^
Note the attributes...
Please try this
<link href="style.css" rel="stylesheet" type="text/css"/>
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 1 year ago.
Improve this question
I have been trying to connect my html and css together but I just can't seem to.
this is what my looks like:
<head>
<meta charset="UTF-8" />
<title>Angels Site</title>
<link rel="stylesheet" type="text/css" href="./Users/angel/Desktop/webdevangela/css/styles.css">
</head>
and I am 100% sure that the path is correct and my file with HTML docs and my file with css documents are in the same hierarchy so I should not have an issue I believe.
I assume your file structure is like this based on what you said.
/webdevangela
/css
style.css
/html
*.html
So your link needs to go out of your html folder by using ../ and then into the css folder.
<link rel="stylesheet" type="text/css" href="../css/styles.css">
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I am not able to see the icon beside the title of the webpage...Why is that?
Here is the line of code where I have put it and both the icon and the HTML file are in the same directory -
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
Check this and have a look at the code below.
<link rel="icon" href="./favicon.ext">
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
My html page doesn't show the edits that should be made with my css page. I have tried to fix the problem for over an hour now and done everything I can think of. The page is linked with
link href="stlyes/css-ba.css" type="text/css" rel="stylesheet"
Which i believe is correct. I've checked and rechecked the name and any other things. It is saved in the folder styles as css-ba.css.
Replace:
link href="stlyes/css-ba.css" type="text/css" rel="stylesheet"
With:
link href="styles/css-ba.css" type="text/css" rel="stylesheet"
You have a spelling mistake "stlyes"
check spellings for "styles" in href="stlyes/css-ba.css"
try deleting cache files and restart the browser
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I've been working on a school project and i've made this layout quickly and I have no idea why this layout works perfectly on Chrome but crashes completly in Firefox! Does anybody have an idea what it could be?
Here is the site:
www.demo.filipsukic.com
This may fix your problem.
Make sure that the type on your stylesheets needs to
be like:
<link type="text/css" href="/css/style.css" rel="stylesheet">
not like:
<link type="/text/css" href="/css/style.css" rel="stylesheet">
Removing the / at the beginning.
For a quick fix, add the class "clearfix" to all your section tags.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 7 years ago.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Improve this question
I can not find a solution to my issue with the favicon. I have searched everywhere. I have a test site and the header is driven by php and inserts the same html header code on all the pages. I can confirm this just by looking at the source code of the pages in question. I have tried about all I know what to do
Here is my code in the html header. http://new.franmar.com/confirmation/980
<link rel='icon' href='/favicon.png' type='image/png'>
<link rel='shortcut icon' href='/favicon.png' type='image/png'>
<link rel="icon" type="image/ico" href="/favicon.ico" />
When I go to the home page (http://new.franmar.com/) I get the icon to show. And its the same code.
And ideas?
Thanks!
http://new.franmar.com/favicon.ico
You have a 404 error there. Where is this file located?