Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Chrome Inspecting Issue. Not showing CSS paths for local files

I am having very unexpected problem on my Google Chrome inspector today. When I was inspecting my local HTML files I noticed I was unable to see from which css file, my classes were coming from. It's very strange because it's always showed it before. Here is the Screen shot

enter image description here

But if I inspect the web form not from Local it shows the files:

enter image description here

Why it's doing this? Is it doing it because of any recent Updates of Google Chrome ? How I can make it work for Local files too ? I need it badly.

Thanks

like image 665
Raihan Avatar asked Oct 09 '14 13:10

Raihan


People also ask

Why is my CSS not working in Chrome?

Make sure that your CSS and HTM/HTML files use the same encoding ! If your HTM/HTML files are encoded as UNICODE, your stylesheet has to be as well. IE and Edge are not fussy : stylesheets are rendered regardless of the encodings. But Chrome is totally intolerant of unmatched encodings.

How do I view CSS files in inspect element?

How can find the css file from inspector ? right click, choose inspect element and will open the styles tab on your right and u can see the classes that holds the css and as well on right top will show in which file name is that class.

How do I add a local image to inspect element?

Right-click on the element you want to change and left-click on “Inspect.” Double-click on the hyperlink in the piece of highlighted code. The hyperlink should end with an image file extension — like jpeg or svg. Replace the hyperlink with a link to your new image and hit Enter.


1 Answers

I just fixed this issue by referencing source maps relative to the workspace root. See my answer here for more information.

like image 153
cchamberlain Avatar answered Nov 15 '22 00:11

cchamberlain