There is a missing semicolon on the CSS rule. Although this is optional on the last style in a CSS rule, it’s good practice to use semicolons:
color: rgb(222, 222, 222);
Solution 2 :
Clear cache in your browser, something code was cached
Solution 3 :
It seems to me that you don’t understand Github and are just learning. Your code works, but if you put it in the index.html, it doesn’t have any effect on the README. And if you put it in README.md, it doesn’t render because it uses Markdown and the HTML file uses a HTML interpreter. All of this is from the comments of another answer.
Solution 4 :
I think you might have forgot semi colons at the end of your code:
h1 { color: rgb(222, 222, 222) }
to
h1 { color: rgb(222, 222, 222); }
Problem :
I’m making a website for a project and i’ve tried doing h1 { color: rgb(222, 222, 222,); } and it hasn’t changed or anything
Please share a minimal amount of code thus we can check what’s wrong with your code.
Comment posted by terrymorse
What has the question to do with Github?
Comment posted by stackoverflow.com/questions/11939595/…
It’s not a good practice though but it will work
Comment posted by Icy
I tried that and put it into my index.html but it doesn’t change my website at all and i put it into my readme.md and it show
edit: im using github by the way so i don’t know if that changes anything
Comment posted by terrymorse
@Icy Readme.md files use markdown format, not HTML.
Comment posted by new QOpenGLWidget
@Icy What? That is not how github works. HTML does not influence the README. Put it into your readme.md and you should get raw HTML because Markdown is a different language than HTML.
Comment posted by Sean
The question doesn’t mention a README.
Comment posted by new QOpenGLWidget
@Sean You don’t understand. This is all from the comment of another answer.
Comment posted by bill.gates
In that case Semikolon is not essentielly needed
Comment posted by new QOpenGLWidget
You don’t need semicolons because there is only one line of CSS.