Generate headlines

To generate the headline styles for H1 – H6 you can use a loop:

@for $i from 1 through 6 {
    h#{$i} { 
            font-size: 2.5em - (0.2em * $i); 
        }   
}

Leave a Reply

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

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.