Did you actually upload it to your site? While there are many ways to add CSS to HTML, the simplest method of doing … This is an excellent option if you have a lot of custom CSS and at least a little previous experience creating CSS. that's the code I used as well and that didn't work, Did you take a look at the file structure, it should match what's shown here: http://d.pr/i/HAWo. So why are only some of them not working? CSS Here is my code. Or is it in another folder, and you didnt point to it in your link. Invalid CSS Format CSS must be written in a specific format in order for a browser to understand it. The full code was provided, and I don't have a site. I just needed that someone tested the code. Fortunately, there are a number of resources to help you figure that part out. However, when I brought it over to my phone, the Javascript works but the CSS doesn’t appear to load at all. I just want that someone else copy this code and try to run it in his machine to see if it works. We equally welcome both specific questions as well as open-ended discussions. Thread starter Compile 'em all; Start date Feb 28, 2012; Sort by reaction score; Forums. September 28, 2019, 6:53am #1. CSS - External CSS File Example - CSS external file consists of a selector (such as .class or #id or *) and a declaration block. PS I agree that it is a bad idea to use a reserved word like body for anything purpose other than its intended reserved purpose. Web Design and Development ... My first step in figuring out why HTML/CSS code is not working as I expected, is to run the code through a validator. External css rule not working. There may be several different reasons behind that, but one very common mistake is to have an external stylesheet that contains HTML markup in some form. HTML not loading external CSS problem. An external stylesheet must contain only CSS rules, and if required, correctly formed CSS comments; never include any HTML syntax, such as