Can I delete an already processed attribute or CSS declaration?

Is there a way to remove a CSS attribute / declaration that has already been displayed on an element? For example, if I use the CSS reset style sheet to set the field on images to 0, I can no longer use the hspace or vspace values ​​(yes, I know that they are deprecated in HTML 4+). Is there a way to remove this ad so that the browser displays vspace and hspace correctly?

As another example, your browser allows you to change the color of links, and these colors are indicated in a certain area of ​​the browser configuration (Tools-> Options-> Content-> Fonts and Colors-> Colors for Firefox 3.6, as an example) However, these parameters only apply if no color declaration has been applied to the tag. Once you apply a color to lnksfrom the reset stylesheet or your Sitewide stylesheet, how can you remove it to use the browser parameter instead?

+3
source share
2 answers

You can return the CSS attribute in autobelow in the CSS rules:

#element {
    margin: 0;
}

#element {
    margin: auto;
}
+4
source

, , : http://www.w3.org/TR/CSS2/

, , ; (), . , CSS, , "unset" - reset.

0

Source: https://habr.com/ru/post/1758215/


All Articles