inspect element, line number in style.css, and WP sites

287 views
Skip to first unread message

Bruce McMinn

unread,
Oct 20, 2017, 2:46:48 PM10/20/17
to Google Chrome Developer Tools
Can inspect element reveal specific line number in the CSS file consistently? I can track stuff down OK by searching for the class or whatever in sublime text, but I thought that there was a way for the inspector to show the line number.

So if I want to inspect the header on this site, https://www.garlicana.com, I can see that I need to search for
.header-image .site-title>a
but I don't see the line number.


I notice on another site, http://jsbmac.com/, the line numbers are revealed. Any ideas why the difference?

Thanks!

PhistucK

unread,
Oct 22, 2017, 2:54:01 AM10/22/17
to Google Chrome Developer Tools
They are revealed, but you minified your files, so they only have one line (so you see :1).
If you use and apply source maps, the Developer Tools will map it to the original source line.


PhistucK

--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-developer-tools+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/5c4c9a13-e881-4e80-80ff-ca24dabc6674%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages