Sublime Forum

Background color wont change

#1

Hello, all
I am having a very difficult time with trying to make a webpage using Sublime. I have my main.html linked to my .css, and I can change font, font-color, font-family. I can even make a class in the .css apply is to a

to change the background color to a specific portion of the page. But the body background color will not change at all. Below I will have a sample of code from both the main html and the .css. Please help.

Below is BlueWhales.html

Below is BlueWhale.css

body{ background-color: grey; color: #0066ff; } h1{ font-size: 35px; font-family: sans-serif; text-align: left; color: green; } h2{ font-size: 20px; font-family: sans-serif; text-align: left; }
0 Likes

#2

have you tried the American spelling, or using a hex color? gray or e.g. #cccccc

0 Likes

#3

For some reason, it won’t show the html I’m trying to share. Anyways, I have also tried using red, blue, green, and orange no color will work.

<link rel="stylesheet" type="text/css" href="BlueWhale.css" is how I am linking the css it has a closing just won't let me post it with deleting my text on the forum
0 Likes