Click to find CSS Definition

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
User avatar
clarkedesign
Posts: 29
Joined: Tue Aug 23, 2005 11:29 am
Location: Solihull, West Midlands, England
Contact:

Click to find CSS Definition

Post by clarkedesign »

HI,

Not sure if I've turned something off..

When in an HTML document, can you click on a CSS class or ID and be taken directly to the corresponding definition in the CSS file ?
Helping your business untangle the web - www.clarkedesign.co.uk
reacher
Posts: 40
Joined: Fri Oct 28, 2011 11:16 am

Re: Click to find CSS Definition

Post by reacher »

Right click on the style/class in the HTML file and select the entry you want under Related Styles in the context menu - it should then open the CSS file (if it isn't opened already) and ping to the chosen element.

In my opinion it is better to do things this way because double-clicking in an HTML file to fire off to the CSS file may not be what you want to happen when selecting text/styles/classes etc.
User avatar
clarkedesign
Posts: 29
Joined: Tue Aug 23, 2005 11:29 am
Location: Solihull, West Midlands, England
Contact:

Re: Click to find CSS Definition

Post by clarkedesign »

Yikes really,

But I have over 2000 styles in my CSS file - I don't want to have to select one from a great big list - I just want to go to the current definition.

Why can't I just have an option to goto the thing i'm clicking on ?
This isn't intuitive.

I've moved over to WeBuilder from TopStyle and there it's an option - I'm kind of regretting the move at the moment.
Just press CTRL and click a CSS definition and you are taken directly to it. Same with PHP and ASP include files.
It can't be that hard to get this functionality, surely.

Image
Helping your business untangle the web - www.clarkedesign.co.uk
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Click to find CSS Definition

Post by Aivars »

Multiple styles might (and often do) apply to the same element. Even in your example - which one is the "current definition" - #centrecontainer in print.css or #centrecontainer in template.css?
Blumentals Software Programmer
User avatar
clarkedesign
Posts: 29
Joined: Tue Aug 23, 2005 11:29 am
Location: Solihull, West Midlands, England
Contact:

Re: Click to find CSS Definition

Post by clarkedesign »

Fair point - but then just show me a list when there is a choice.
If there isn't a choice - just take me to the style definition.

Why am I being shown lots of other styles that are nothing to do with the current selection?

In the example; the current style is called "masthead", why them am I shown lots of other unrelated styles.
I should be shown a list of one - "#masthead" - thus a list of one, just take me to it.

I can't see why the other styles are classed as related, other than they are # definitions.

Image
Helping your business untangle the web - www.clarkedesign.co.uk
Post Reply