404 is a 'not found' error. Meaning, the browser cannot find your style.css with the path it was given. If it is working on some templates and not others, it is because you may have a different file structure for some templates, a sub-folder for example.

A quick fix would be to make your style.css load from an absolute path

https://yourdomain.com/public/css/style.css

A better solution would be to traverse the directory to the css folder and then reference your style.css.

Learn about relative paths and find a solution that works for all templates. The answer is likely to be something like:

/public/css/style.css

However, it could be something like:

../public/css/style.css

Where goes back to one more previous directory. More about absolute vs. relative paths http://www.coffeecup.com/help/articles/absolute-vs-relative-pathslinks/

Answer from Tom on Stack Overflow
🌐
GitHub
github.com › vercel › next.js › issues › 5641
_next/static/style.css net::ERR_ABORTED 404 (Not Found) · Issue #5641 · vercel/next.js
November 9, 2018 - _next/static/style.css net::ERR_ABORTED 404 (Not Found)#5641 · Copy link · Jero786 · opened · on Nov 9, 2018 · Issue body actions · After update version 7, is not longer working the hot reload.
Author   Jero786
Discussions

Encountering a net::ERR_ABORTED error and 404 error when refreshing page within 3 nested routes.
George V. is having issues with: Hi, I am not using create-react app. I am using webpack, babel, and es6. Everything has been working fine until I realized the webpage b... More on teamtreehouse.com
🌐 teamtreehouse.com
2
October 24, 2017
Net::err_aborted 404 (not found)
When i open index file it works but when i run app css cant be find, and in console it says Net::err_aborted 404 (not found) More on thecodingforums.com
🌐 thecodingforums.com
11
December 17, 2022
How can I solve net::ERR_ABORTED 404 (Not Found) in a view, error dont let display the css Laravel 6.0?
I am doing a view and when I send the information that, I want to show to that view send the error that I show above and the view is displayed with html only. This error doesn't happen when I did not More on stackoverflow.com
🌐 stackoverflow.com
How to fix ERR_ABORTED 404 error on new contact forms in Dawn theme?
The error you’re encountering indicates that the CSS file section-contact-form-return.css is not found or inaccessible on the specified CDN path. This issue could be caused by several factors. Here are a few steps you can take to troubleshoot and resolve the problem: Check file existence: ... More on community.shopify.com
🌐 community.shopify.com
0
1
June 6, 2023
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 9489174078098-net-ERR-ABORTED-404-Not-Found-and-TailwindCSS
net::ERR_ABORTED 404 (Not Found) - and TailwindCSS – IDEs Support (IntelliJ Platform) | JetBrains
Note that we have added some fixes recently that make (most) of absolute paths work on the built-in web server, see https://youtrack.jetbrains.com/issue/WEB-11949/simplify-built-in-web-server-document-root-configuration#focus=Comments-27-5029164.0-0. But some problems still remain, see https://youtrack.jetbrains.com/issue/WEB-57280/Built-in-web-server-URL-links-in-CSS-dont-work-if-CSS-is-loaded-using-absolute-path-with-leading-slash, for example
🌐
The Coding Forums
thecodingforums.com › development › html and css
Net::err_aborted 404 (not found) | HTML and CSS | Coding Forums
December 17, 2022 - I don't know anything about your structure. Is your index located in a folder named public along with a folder named css? Then you should go with that path: href="css/style.css" If your index is within the folder css than: href="style.css" There is absolute and relative pathes.
Find elsewhere
🌐
Shopify Community
community.shopify.com › english › technical q&a
How to fix ERR_ABORTED 404 error on new contact forms in Dawn theme? - #2 by NomtechSolution - Technical Q&A - Shopify Community
June 6, 2023 - Here are a few steps you can take to troubleshoot and resolve the problem: Check file existence: Ensure that the CSS file section-contact-form-return.css exists in your theme’s assets folder.
🌐
GitHub
github.com › patrick-steele-idem › browser-refresh › issues › 56
ERR_ABORTED 404 (Not Found) - Doesn't support static html files · Issue #56 · patrick-steele-idem/browser-refresh
March 12, 2019 - 2127.0.0.1/:25 GET http://127.0.0.1:4000/{process.env.BROWSER_REFRESH_URL} net::ERR_ABORTED 404 (Not Found) client/index.html: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>The HTML5 Herald</title> <meta name="description" content="The HTML5 Herald"> <meta name="author" content="SitePoint"> <link rel="stylesheet" href="static/style.css"> </head> <body> <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.min.js"></script> <canvas id="chart" width="400" height="400"></canvas> <script src="static/client.js"></script> <script src="{process.env.BROWSER_R
Author   basickarl
🌐
Netlify
answers.netlify.com › support
CSS return 404 after a successful build while accessing the published preview - Support - Netlify Support Forums
June 24, 2021 - My style.css return 404 error after build is successful. When I checked the sources tab on devtool it shows that style.css is empty. Then I tried similar process locally by running yarn build, after a successful build. I accessed the url in a browser, all assets loads correctly without 404 error and i confirmed that style.css is not empty.
🌐
Cloudflare Community
community.cloudflare.com › application performance
JS file gets a net::ERR_ABORTED 404 (Not Found) - Application Performance - Cloudflare Community
September 4, 2020 - Hi there, I get this message error on the developer console (in order to see it you can click on inspect the element, and then go to the console, you’ll find multiple errors in my page) and this is affecting my user exp…
🌐
WordPress
wordpress.org › support › topic › err_aborted-404-not-found
ERR_ABORTED 404 (Not Found) | WordPress.org
December 29, 2023 - still seeing it , bottom line is , some option like JS combine , JS minify , CSS combine , CSS minify , Guest Mode …etc are NOT compatible with other cache system.
🌐
Stack Overflow
stackoverflow.com › questions › 78868402 › github-pages-neterr-aborted-404-not-found
html - Github Pages net::ERR_ABORTED 404 (Not Found) - Stack Overflow
Instead of <link rel="stylesheet" href="/style.css"> use <link rel="stylesheet" href="./style.css"> and it will. ... Styles. It seems that @Meet answer fixed the problem, but now I have this error, which I believe is an unrelated error, to do ...
🌐
DEV Community
dev.to › j_sakamoto › how-to-deal-with-the-http-404-content-foo-bar-css-not-found-when-using-razor-component-package-on-asp-net-core-blazor-app-aai
How to deal with the "HTTP 404 '_content/Foo/Bar.css' not found" when using Razor component package on ASP.NET Core Blazor app - DEV Community
July 8, 2020 - If you encounter like the "HTTP 404 '_content/Foo/Bar.css' not found" error when using Razor component library package on ASP.NET Core Blazor app development scene, I'll recommend you to check the "ASPNETCORE_ENVIRONMENT" environment variable is "Development" or not.
🌐
Shopify Community
community.shopify.com › c › technical-q-a › err-aborted-404 › m-p › 2092121
Solved: Re: ERR_ABORTED 404 - Shopify Community
June 6, 2023 - The error you're encountering indicates ... factors. Here are a few steps you can take to troubleshoot and resolve the problem: Check file existence: Ensure that the CSS file...
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 1184324 › why-error-404-generated-when-publish-blazor-app-on
why error 404 generated when publish blazor app on iis ? - Microsoft Q&A
February 25, 2023 - Failed to load resource: the server responded with a status of 404 (Not Found) GET http://localhost:245/BlazorUI.styles.css net::ERR_ABORTED 404 (Not Found) Dashboard:13 GET http://localhost:245/css/site.css net::ERR_ABORTED 404 (Not Found) Dashboard:20 GET http://localhost:245/~/assets/lib/bootstrap/dist/css/bootstrap.min.css net::ERR_ABORTED 404 (Not Found) DevTools failed to load source map: Could not load content for http://localhost:245/assets/css/dashboard-free.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE blazor.server.js:1 [2023-02-23T13:48:46.310Z] Information: Normalizing '_blazor' to 'http://localhost:245/_blazor'. blazor.server.js:1 [2023-02-23T13:48:46.341Z] Warning: Failed to connect via WebSockets, using the Long Polling fallback transport.
🌐
WordPress
wordpress.org › support › topic › getting-404-with-css-and-js
Getting 404 with CSS and JS | WordPress.org
September 19, 2024 - ps3remodelingconcrete.com/:594 GET https://ps3remodelingconcrete.com/wp-content/uploads/uag-plugin/assets/0/uag-js-13.js?ver=1726369354 net::ERR_ABORTED 404 (Not Found)Understand this error · The page I need help with: [log in to see the link] ... Other page https://ps3remodelingconcrete.com/about-us/ using different version of CSS and JS (1400) which is working fine.