Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Do not use empty rulesets

Ok so I am trying to access a html image from a css script but Im having a problem

HTML

<!DOCTYPE html>
<html>
    <head>
        <title>MB</title>
        <meta charset="utf-8">
        <link rel="stylesheet" href="style.css">


    </head>
    <body>
        <div class="Top">
            <img class="img-Sale" src="Images/Sale.png" alt="Sale">

        </div>
    </body>
</html>

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I have not found any help on this matter on stackoverflow so thats why Im asking

>Solution :

An empty ruleset would be in plain terms leaving this things {} empty.
So, the warning it’s basically saying don’t do this:

.img-Sale {

}

If you write any css inside the curly brackets/braces, for example {color: black;}, it will go away.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading