none
(CssLint)Rule is empty RRS feed

  • Question

  • I'm revamping a web site I built a few years ago in VS 2015, but now I have VS 2017, and doing lots of cleanup, like adding the slashes to the end of input tags and the like.

    There is one I don't understand: It's giving me an error in my style.css file at the body tag: (CssLint)Rule is empty.

    My body tag looks like this:

    body {
        margin: 0;
        padding: 0;
        background: #28281F url(img01.jpg) repeat-x left top;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 14px;
        color: #19130D;
    }
    
    It doesn't seem to complain about the others.

    Tuesday, February 19, 2019 7:40 PM

All replies

  • The same error is probably reported if you have ‘body { }’, i.e. an empty style.

    Did you try to remove this fragment and check again? Maybe remove, then re-type or paste the definition.

    See also a place: https://forums.asp.net/.

    Tuesday, February 19, 2019 8:50 PM
  • Hi Tom Ruby,

    Thank you for posting here.

    Since this thread is related to website, please post in the following forum.

    https://forums.asp.net/

    The Visual C# forum discuss and ask questions about the C# programming language, IDE, libraries, samples, and tools.

    Best regards,

    Jack


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, February 20, 2019 5:21 AM
  • Couldn't find that forum in the drop list.
    Tuesday, February 26, 2019 9:51 PM