Browsers creates HTTP requests to servers. The server then creates an HTTP response
Both requests and responses consist of a bunch of headers and a body with some content in it.
In case there is a body, then one of the headers is the
Content-Type which narrate what the body is (is it an HTML document? An image? The contents of a form submission? etc).
At the time you inquire for your stylesheet, your server is saying the browser that it is an HTML document (
Content-Type: text/html) instead of a stylesheet (
I've formerly checked my myme.type and text/css is already on css.
Then something else regarding your server is creating that stylesheet come with the wrong content type.
Employ the Net tab of your browser's developer tools to test the request and the response.
The base tag requires to not only be in the head however in the right location.
I had my base tag in the wrong place in the head, it must come before any tags with url requests. Originally placing it as the second tag underneath the title solved it for me.
Add a forward slash / before the path to the css file, like so:
<link rel="stylesheet" href="/css/bootstrap.min.css">
Try this <link rel="stylesheet" type="text/css" href="../##/yourcss.css">
## is your folder wherein is your .CSS - file
Don't forget about the:
.. (double dots).
reason by lines in my HTML in the following form:
<link rel="stylesheet" type="text/css" href="css/my_css_resource.css" />
The problem was solved at the time I removed
rel="stylesheet" from the tag.