locked
Identifying redundant css RRS feed

  • Question

  • I would be very grateful for a sterr on this.

    I need a way of identifying redundant css selectors within Visual Studio 2008. I am working on a project which has been subjected to a considerable amount of backend ammendment. As a result there are a large number of redundant selectors in my css, which I would like to remove. Is there a way in VS2008 to audit a project and identify these redundant selectors?

    Thanks in anticipation

    Alex

    Thursday, October 28, 2010 11:19 AM

Answers

  • Hi Alex,

    You're going to have to excuse my ignorance on this one. But what is a CSS selector?

    Thanks,


    Ed Dore
    Wednesday, November 10, 2010 10:10 PM

All replies

  • Hi Alex,

    You're going to have to excuse my ignorance on this one. But what is a CSS selector?

    Thanks,


    Ed Dore
    Wednesday, November 10, 2010 10:10 PM
  • Ed

    No need to apologise  - I think it is the way I posed the question. Hopefully this will help.

     

    Suppose I have in my css the following:

     

    #foo {color:red;}

    #bar{color:green;}

    What I am wondering is if there is a mechanism for identifying if the #foo and/or #bar examples are present in the solution, thus allowing me to safely delete them.

    In topstyle (a very good dedicated css editor) there is just such a function it would be very helpful to have such a facility in VS2008.

    Thanks for taking the trouble of reading.

    Alex


    Alex
    Tuesday, November 23, 2010 3:19 PM