This line is missing a close parenthesis ) which is affecting your markup:

background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.02,   rgb(75,135,163)), color-stop(0.54, rgb(127,219,219))

Change it to this:

background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.02,   rgb(75,135,163)), color-stop(0.54, rgb(127,219,219)));

You should look into using W3C's HTML and CSS validation tools to catch problems like these. The HTML validator isn't great about catching bad CSS, so you can copy-paste your embedded CSS into the CSS validator.

Oh and might as well put a semi-colon at the end of that last background-image statement (I did it for you), since it'll save you grief if you add more lines in the future but forget to add the semi-colon to the previous line.

Answer from Anson on Stack Overflow
🌐
freeCodeCamp
forum.freecodecamp.org › html-css
My CSS isn't working - HTML-CSS - The freeCodeCamp Forum
June 5, 2022 - Tell us what’s happening: t The effects of my CSS isn’t showing even though i’ve linked my CSS to HTML. This also happened on the previous project where i had completed my HTML codes, who knows what’s wrong? Describe your issue in detail here. **Your code so far** /* file: index.html ...
Discussions

Internal CSS Not Working - HTML & CSS - SitePoint Forums | Web Development & Design Community
EDIT : nevermind, I did not place the CSS in the head section. More on sitepoint.com
🌐 sitepoint.com
0
September 3, 2014
CSS is not working in Vs code- HELP ( I am Linking it correctly)
In case anyone comes across this post like I did and none of these solutions work for you, what did for me was moving the stylesheet to the bottom of my lists. Somehow it was that move and not nine million attempts at refreshing / hard clearing, not renaming the files, not adding important to things (temporarily did work but wasn't realistic). Hope this helps! More on reddit.com
🌐 r/css
18
3
October 26, 2020
html - Inline css work but external and internal css doesn't work in index.php - Stack Overflow
As the question suggests I have an index.php file with html in it and when I try to style it using external or internal css, it doesn't work. But inline css works. By the way I am using xampp on wi... More on stackoverflow.com
🌐 stackoverflow.com
July 5, 2014
internal css not working | WordPress.com Forums
Forums / internal css not working internal css not working mahkashthourani125 · Member · May 16, 2020 at 3:43 pm Copy link Add topic to favorites I dont want to customize theme css i just want to add internal css to html But it (internal css) only works on edit page preview button but not ... More on wordpress.com
🌐 wordpress.com
May 19, 2020
🌐
SitePoint
sitepoint.com › html & css
CSS not loading - HTML & CSS - SitePoint Forums | Web Development & Design Community
It sounds to me like you are loading other HTML and CSS instead of just copying the above “working page” to a new file with an HTML suffix and double-clicking the new file to open it in your browser. For your first test run on the code that I posted, copy and paste the “working page” to a new file on your computer. Give that file a .htm or .html suffix and double-click it to open it in your browser. It should open instantly. Make a screen shot if it does not resemble my screen shot.
Published   May 19, 2018
🌐
meyerweb
meyerweb.com › eric › articles › webrev › 199904.html
Help! My CSS Isn't Working!
In this column, we'll explore a few of them, including the dreaded "disappearing styles" bug in Netscape and an easy way to keep your length values from working. Upon encountering a problem, the first impulse is often to wonder if the styles are correctly written. Fortunately, there are a number of resources to help you figure that part out. There are the articles here at Web Review, of course, but they may not cover your particular situation. You need to make sure that there aren't any errors in either your HTML or your CSS, since mistakes in either place can result in botched document appearance.
🌐
Reddit
reddit.com › r/css › css is not working in vs code- help ( i am linking it correctly)
r/css on Reddit: CSS is not working in Vs code- HELP ( I am Linking it correctly)
October 26, 2020 -

I tried using bootstrap in my code for the first time and then after that my previous css work would not display. Now even though I’ve cut out the bootstrap and even tried making another simple bellow world page just to check , simple css like color won’t work. I’ve tried internal and inline Internal seems to be working for a complicated homepage but doesn’t for a simple hello world

EDIT- here’s my code And
This is it without bootstrap

Find elsewhere
🌐
WordPress.com
wordpress.com › forums › topic › internal-css-not-working
internal css not working | WordPress.com Forums
May 19, 2020 - Hi, if you’re trying to add <style> tags to a page or post here, that won’t work: you’ll need the Premium plan, then you can store the additional CSS separately from your content. https://wordpress.com/premium · Otherwise, you can do inline CSS as needed. The topic ‘internal css not working’ is closed to new replies.
🌐
WPForms
wpforms.com › docs › styling › troubleshooting css
Troubleshooting CSS - WPForms
May 21, 2024 - If you’re not sure, you may want to contact your host to ask if they are caching your site and, if they are, ask them to clear that cache for you. Occasionally, just loading your site over a different internet source can help to bypass an existing cache. If you have a mobile device with available data, the simplest way to do this is to temporarily turn off WiFi on your device and reload the page. CSS must be written in a specific format in order for a browser to understand it.
🌐
freeCodeCamp
forum.freecodecamp.org › html-css
CSS styling not working - HTML-CSS - The freeCodeCamp Forum
December 17, 2021 - Hello, I’m working on the personal portfolio project and I’m running into an issue in the “contact section” of my page. I am trying to style this section but none of the css selectors are having any effect on the html I’ve written. I’ve passed all the tests but I am just unable ...
🌐
Stack Overflow
stackoverflow.com › questions › 7497989 › internal-css-affected-not-working-properly
Internal CSS affected not working properly - Stack Overflow
http://webdesign.about.com/od/css/f/blcssfaqimportn.htm ... Your body's font is set to 2px, but this can be overridden by other classes and styles. Look at the element that is not 2px and check which style is applied.
🌐
Quora
quora.com › Why-is-the-CSS-style-not-applied-HTML-CSS-web-and-development
Why is the CSS style not applied (HTML, CSS, web, and development)? - Quora
Answer: * Perhaps you have a typo or your CSS include statement is not in your path. Please check your header CSS file reference and your CSS location. * Perhaps you have Cloudflare and it so it takes time for a CSS change to update.
🌐
freeCodeCamp
forum.freecodecamp.org › t › external-css-is-not-working-please-help › 358531
External css is not working, please help? - The freeCodeCamp Forum
March 14, 2020 - I have two files, both in the same folder. home.html - linkforthesame styles.css - linkforthesame The external css is not working, please help.
🌐
Stack Overflow
stackoverflow.com › questions › 71081434 › why-external-css-is-not-working-whereas-internal-css-is-working-fine
html - why external css is not working whereas internal css is working fine - Stack Overflow
February 11, 2022 - There might be 2 issues 1) The file is cached. Hard reload will fix that. Do a F12 and check the developer window to see if you see your correct css or do you see load errors 2) Check if anything from your custom css gets loaded at all. might ...
🌐
Reddit
reddit.com › r/css › why is it when i use this css code in my external css file it does not work at all, however if i use it as an internal edit, it works just fine.
r/css on Reddit: Why is it when I use this CSS code in my external CSS file it does not work at all, however if I use it as an internal <style> edit, it works just fine.
January 10, 2019 -
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Practice Site</title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="style.css">
        <link rel="stylesheet" href="reset.css">
        <link rel="stylesheet" href="debug.css">
        <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet"> 
    </head>
    <body>
        <article>
            <p class="debug-centre">ARTICLE</p>
        </article>
        <article>
            <p class="debug-centre">ARTICLE</p>
        </article>
        <article>
            <p class="debug-centre">ARTICLE</p>
        </article>
    </body>
</html>

This is the HTML to my website titled index.html

article {
    display: grid;
    grid-template-columns: 1fr minmax(0, 8.5in) 1fr;
    height: 100vh; /* temp fix */
    padding: 0.5in 0;
    }

article * {
    grid-column: 2/3;
}

And this is my external stylesheet style.css

Now, when I try to add padding to the <article> via my external CSS it does not work, even with the identical code. It only works if I copy paste it into the HTML file using <script>.

How can I fix this, and why does this happen?