Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

css loaded in files and included but doesnt apply on html elements

$
0
0

I've encountered a super weird issue and I'm completely out of ideas on how to debug it and where to look.

Here's the deal: whenever I visit any page in the application, the styles don't load, classes aren't being fetched from the CSS file. Even though when I inspect the page source and navigate to the CSS file, its content displays correctly.Moreover, when I save a screenshot of the incorrectly displayed page (ctrl+s) and then run that HTML, everything displays correctly. Styles placed within tags directly in the HTML file load correctly.The problem only arises when classes come from an external file. It doesn't matter if the styles come from a file like public/css/styles.css or from a bundle like /bundles/nelmioapidoc/style.css.The problem persists. I've cleared the cache, rebuilt containers from scratch, I've done it all, and it didn't help.I haven't restarted the computer ;) but that's just a joke.

Just to clarify, the styles load correctly, meaning:

<link href="{{ asset('css/styles.css') }}" rel="stylesheet" />

Javascript is working correct.

I've been battling this for few hours now, so posting here isn't my first thought, but I'd be grateful for any help.I'm using the latest Symfony and Docker.I thought it might be an issue with the vendor, maybe I accidentally changed something in it, but removing it and reinstalling via Composer didn't solve anything.


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>