If define a CSS rule with top: 0;
, how can I later disable or neutralise it in favor of bottom: 0;
used elsewhere?
A CSS Reset style sheet is a list of rules that 'reset' all of the default browser styles. We reset the browser styles for two primary reasons: Not all browsers apply the same default rules. They may be similar, but not exact.
In Support of No CSS Reset “If you take them away, you risk having content (say, user-generated content) that ends up being unstyled, raw.” Most designers and developers who believe that browser defaults cause most layout problems are wrong, according to Verschelde.
Use the revert keyword to reset a property to the value established by the user-agent stylesheet (or by user styles, if any exist). Use the revert-layer keyword to reset a property to the value established in a previous cascade layer.
do top: auto; bottom:0;
- auto
is the default value for top
top: auto; bottom: 0px;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With