Re: help with finding css element

dieter <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <[email protected]>
Chuck Theobald <[email protected]> writes:
>     I'm trying to figure out where some of the basic css elements come
>     from. My theme has one css file, default.css, but it does not
>     contain the complete definition for the heading text

I use "firefox" (its inspector or its "firebug" plugin)
for those tasks. It can tell you from which urls CSS definitions
applied to some element have been fetched. The urls in turn
usually allow to determine where are the Plone sources for them.


Often CSS resources for Plone are managed by "portal_css".
If you see "portal_css" in one of the urls above, then this is
the cases for those urls.

"portal_css" has the task to efficiently handle style sheet information.
It can merge several style sheets into a single one (reducing
the number of requests), compress the result (reducing bandwidth requirements)
etc. This is fine for production sites but makes exploration (as
you may plan) more difficult. You can put "portal_css" into
"debug mode"; then it gives you a direct correspondence between
the urls as seen by (e.g.) "firefox" and the Plone sources.

Usually, you can locate source candidates for the resulting urls
by recursively searching the source tree for the last url component -
maybe (for older Plone versions), with an additional ".dtml" suffix.


------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.