+1 vote
in CSS by
How does Calc work?

1 Answer

0 votes
by

The CSS3 calc() function allows us to perform mathematical operations on property values. Instead of declaring, for example, static pixel values for an element's width, we can use calc() to specify that the width is the result of the addition of two or more numeric values.

.foo {

Width: calc(100px + 50px)

}

26. What do CSS Custom properties variables mean?

Custom properties (sometimes referred to as CSS variables or cascading variables) are defined by users that contain specific values to be reused throughout a document. The value is set using -- notion. And the values are accessed using the var() function.

:root {

--main-bg-color: brown

}

.one {

color: white;

background-color· var (--main-bg-color);

margin: l0px,

width: 50px,

height: 5Opx;

display: inline-block;

}

Related questions

+1 vote
asked Jul 7, 2021 in CSS by rajeshsharma
0 votes
0 votes
asked Feb 4 in Image Classification by SakshiSharma
...