4

I have been using Brackets for a school image and was trying to move div tags next to each other but was experiencing no change in visuals of the code and I wanted to check if there is an issue with the external CSS so I tried to change the background colour to no successes and haven't even been able to change the background colour of a properly set up blank document.

I have been using the following to try to change the colour.

body {
    background-color: green;
}

And this is the blank html for the purpose of testing

<!DOCTYPE html>
<html>
    <head>
        <title>Solitare</title>
        <link rel="stylesheet" href="Untitled-2.css" type="tex/css">

    </head>
    <body>

    </body>
</html>

Am I missing something blindingly obvious or is there another issue?

Thank you very much. G. Ward

G.Ward
  • 51
  • 5

2 Answers2

3

probably you have a mistake at <link rel="stylesheet" href="Untitled-2.css" type="tex/css"> try this <link rel="stylesheet" href="Untitled-2.css" type="text/css">

body {
    background-color: green;
}
<!DOCTYPE html>
<html>
    <head>
        <title>Solitare</title>
        <link rel="stylesheet" href="Untitled-2.css" type="text/css">

    </head>
    <body>

    </body>
</html>
1

Your code is just fine! you are only missing 1 thing a 'text' instead of 'tex'

<link rel="stylesheet" href="Untitled-2.css" type="tex/css"

should be

<link rel="stylesheet" href="Untitled-2.css" type="text/css"

Bram
  • 31
  • 1
  • 7