On Sat, Sep 19, 2009 at 22:03, guyinpv <[email protected]> wrote: > This may be easy, and I'm stupid, but when I'm going around inspecting > a site and tweaking, and let's say the site has 8 CSS files for > variations and so forth, and I pick an element and track down the CSS > to that element, I can't find out which CSS file it's in! >
When you inspect an element, in the Style Sub-Panel you have a reference for the file that defines that rule. > OK, I take that back, I know when you're looking at some CSS it will > have the filename to the right of the "edit" button just above the > code, BUT, sometimes all it says is the domain name itself, instead of > a CSS file. However, I still can't find where this CSS actually IS! If you right click that reference, you'll see a context menu with the option of copying the URL or opening the stylesheet in a different window. > I've checked the index file, in the HTML itself, can't find it. I > don't have access to every file, I only have access to the index.php > file and the css files themselves, cause this is a CMS/backend kind of > thing. Can Firebug be more specific about WHERE it found the CSS that > it shows? I've looked high and low through all the CSS files and > elsewhere trying to find the css that FB knows about so easily. I think that this must be implemented the same way as the HTML panel. Firebug doesn't "read the source" to show you the HTML source of the page, it parses the Firefox generated DOM tree for the page back into HTML source. This means that the shown code in firebug and the original source code may vary, specially if the source is not correctly written and Firefox kind of fix it on the fly. Regarding CSS, firebug must be listing the attached CSS to the page, not reading the source for CSS stylesheet relations. Maybe the CSS is being attached dynamically with JavaScript, so that's why you don't find the <link> tags on the source... HernĂ¡n --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/firebug?hl=en -~----------~----~----~----~------~----~------~--~---
