natours with sass pt1 week4

Kyle Dharam

In the tutorials 2 interesting CSS features were:

not() Pseudo Selector: The :not() pseudo selector is used to apply styles to elements that do not match a certain selector. For example, to style all buttons except those with the class btn-outline-primary: button:not(.btn-outline-primary) { background-color: grey;

calc() Function: The calc() function is used to perform calculations to determine CSS property values. For example, to set the width of an element to be half the viewport width minus 20 pixels:.element {
width: calc(50vw - 20px);
}

    Leave a comment

    Your email address will not be published. Required fields are marked *