Skip to main content
Participating Frequently
Mar 24, 2017 9:29 PM UTC
Question

Finding Unused Styles

Hi,

Is there a feature in Dreamweaver 2015 to determine if I have a css style assigned but it is not defined?

Thanks

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

Jon Fritz
Community Expert
Community Expert
Mar 24, 2017 9:37 PM UTC

It's not something I've ever seen in the program before.

I've used the Firefox Dust-Me Selectors add-on in the past when I needed to find that kind of info, and it seemed to work pretty well.

Translate
cosmarchyAuthor
Participating Frequently
Mar 26, 2017 9:26 AM UTC

Dust-me is the exact opposite of what I'm after - it finds styles which are defined but unused.  I'm looking for used styles which are undefined!!

I would have thought this would be quite a useful feature for DW.  Saves using styles which are undefined and the pages not presenting properly.  Easily missed when you have a large number of styles or a large webpage.

Translate
Nancy OShea
Community Expert
Community Expert
Mar 26, 2017 6:43 PM UTC

How do you manage to use styles that are not already defined in your CSS code?

My workflow is to use Available Classes from Code Hints and/or the HTML Properties Panel.  In other words, if it's not defined anywhere in my CSS, it's not an available option.  See screenshots.   I'm using Bootstrap CSS in this example.

Nancy

Translate
Nancy O'Shea— Product User & Community Expert