Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

nesting in sass

/*  nesting styles inside the parent element. 
& will refer to the parent which is the anchor tag a.*/ 
li {
    margin-right: 2.5rem;

    a {
      text-decoration: none;
      color: #707070;

      &:hover {
        color: #069c54;
      }
    }
  }
 
PREVIOUS NEXT
Tagged: #nesting #sass
ADD COMMENT
Topic
Name
8+1 =