Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

First Few Lines of CSS Not Working?

Tags:

html

css

I'm currently fourteen years, and I've been trying to learn HTML and CSS over the past month. I've gotten the hang of things and tried to make my own website. I am a huge fan of League of Legends, so I decided to make it about that. Everything is coming along beautifully, but I've encountered a problem with the CSS. I'm using an internal style sheet. For some odd reason, the first syntax isn't working. Everything else functions properly.

This is the link to my website

(Right click and press view page source to look at code)

According to css code, all listed items should be the color #0000CD. However, nothing is happening. Can someone tell me what I did wrong and how to fix it?

like image 348
Ben Avatar asked Dec 15 '22 10:12

Ben


1 Answers

In the <style> node remove the HTML comment : <!---Begin CSS--->

It breaks your CSS. A real CSS comment is like this : /* I am a comment */

like image 55
Arnaud Gueras Avatar answered Jan 04 '23 19:01

Arnaud Gueras