because css properties only work in HTML and not in external css

Asked

Viewed 166 times

0

<button id="btn-info" type="button"></button>

When I put the selector with the properties in external css it does not work but if you put it directly into the html Style it’s all right.

#btn-info{
    display: block!important;
    background-image: url(icons/categorias/informatica/headset.svg);
    width: 100px;
    height: 100px;

    border: solid 1px #ccc;
    border-radius: 50%
}

When I go to source from the browser developer menu, I see that my css snippet has been ignored, but if I paste the same CSS snippet there works hesitantly. inserir a descrição da imagem aqui

How I can modify properties from my CSS file ?

  • Place !important in front, just like you did with display .. I say that because I can’t see the print, I can’t access the URL.

  • Thanks for the help the problem is the browser. thanks, I just restarted the pc and ready OBG

  • If it works in style and not in the CSS general rule has to do with overlaying styles, and resolves by correcting the application order, changing the selectors or placing !important. As an aside do not write text in high box, we can all read well.

  • face is always good when vc do a very heavy update on your codes clear the browser data... depending it is good to delete the whole date from the browser as it can be cached

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.