Book Image

LESS WEB DEVELOPMENT COOKBOOK

Book Image

LESS WEB DEVELOPMENT COOKBOOK

Overview of this book

Table of Contents (19 chapters)
Less Web Development Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


Less helps you to write a better and more readable CSS code. With Less, you will code faster and will be able to meet the don't repeat yourself (DRY) principle of software programming. In this chapter, you will see how to create a dynamic and reusable Less code by exploring the features of Less in more detail.

You will find out how to create a switch leveraging argument matching, how to build the if…else constructs with the Less guards, and how to dynamically create a list of CSS classes with recursion in Less by creating a loop.