How to use gradients in css?

CSS gradients are represented by the <gradient> data type, a special type of <image>made of a progressive transition between two or more colors. We can choose between three types of gradients: linear (created with the linear-gradient() function), radial (created with radial-gradient()), and conic (created with the conical-gradient function). You can also create repeating gradients with the repeating-linear-gradient() and repeating-radial-gradient() functions. Gradients can be used anywhere you would use an <image>, such as in backgrounds. Because …

How to use gradients in css? Read More »

When we use !important exception and why we use it

The important the rule is used on a style declaration and this declaration overrides any other declarations. Although technically !important has nothing to do with specificity, it interacts directly with it. Using!important, however, is not good practice and should be avoided. Because it does debug more difficult by breaking the natural cascading in your stylesheets. When two conflicting declarations with …

When we use !important exception and why we use it Read More »