Problems with the CSS

Asked

Viewed 107 times

-2

I am new here and am programming in CSS,me problem is the following: I can do and place the codes normally in the sublime text, but when it comes to seeing the result in the browser it does not appear. What I do ?

  • is importing it correctly into your HTML?

  • And the code can post?

  • 1

    are you sure you are importing the correct css file: <link rel="stylesheet" type="text/css" href="CAMINHO PARA O FICHEIRO AQUI">?

  • Yes Miguel, import the file already, but this way did not appear... I’ll try to do it again here.

1 answer

0


Use the structure below:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Título da página</title>

        <link rel="stylesheet" href="CAMINHO_PARA_ARQUIVO.css">
    </head>
    <body>

    </body>
</html>

It works perfectly! All my web pages are built with this template and I’ve never had any problems. Just link RIGHT the css and ready, everything working! : D

Try looking in the developer console, if you are using Google Chrome, if it is not giving Cross Origin problem! Generally Chrome blocks external requests to the same page by following this same origin policy. If you have this problem, try running the page on a local server (like xampp, wamp, Lamp, etc.) and see if you can fix the problem!

  • 1

    Vlw Lucas, it worked here! "+ 1"

Browser other questions tagged

You are not signed in. Login or sign up in order to post.