[WEEK #4] – 05 Natours Project with Sass Part 1 + Problem Sets + Blog Question

Problem Set

Blogging Question

The :not() pseudo-selector, selects everything that you pass as a parameter except the last child of it. In the tutorials, we used the not selector when creating the grid system, the not selector was used to give everything except the last child a margin-bottom.

lastly, the calc() method allows developers to do math functions. in the tutorials, we used the calc function when creating the grid system.

&:not(:last-child) {
        margin-bottom: $gutter-vertical;
    }

width: calc((100% - #{$gutter-horizontal}) / 2);



Leave a comment

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

css.php