Sass @for Rules
Sass @for Rules
Sass @for
Rules can execute a block of code for the specified number of times.
Sass @for Rules using 'through'
If through
(in @for
Rules) is used, the final number is included.
In the following example, the @for
Rules will execute the block of code for '3 times'.
Example
Syntax
Sass @for Rules using 'to'
If to
(in @for
Rules) is used, the final number is excluded.
In the following example, the @for
Rules will execute the block of code for '2 times'.
Example
Reminder
Hi Developers, we almost covered 99.1% of Sass Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in Sass.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.