官术网_书友最值得收藏!

Chapter 1. Introducing Less

Are you tired of writing the same old CSS styles for client websites only to find out that you're repeating yourself? Wish you could cut down on what you write and still produce the same results…?

Well, you can. Welcome to the world of CSS preprocessors, and in particular, Less! CSS preprocessors such as Less are designed to help you reorganize your styles to smaller, more manageable chunks of reusable code that you can store and reference as and when your projects demand.

Less, designed as a superset or extension of CSS, is very much about making your development work easier—it incorporates variables and functions that are more likely to be seen in scripting languages such as JavaScript while still compiling in valid CSS. While the initial thought of working with code might scare you, you'll see that Less is really just CSS, but with some additions to help make development easier. Less will help you cut down the development time, as you can reuse code from one project in another—how much is all up to you!

In this chapter, we will cover the following topics:

  • The roles of HTML and CSS, and the limitations of using CSS
  • Why CSS preprocessors are needed
  • Why you should use Less
  • The advent of CSS4, and what this means for Less
主站蜘蛛池模板: 航空| 竹山县| 泽普县| 牟定县| 三亚市| 平罗县| 肇州县| 合川市| 墨江| 民和| 平谷区| 翁牛特旗| 丰顺县| 郑州市| 宾阳县| 万安县| 翁牛特旗| 泽库县| 新蔡县| 南昌市| 丹巴县| 大悟县| 宝山区| 玛纳斯县| 黄陵县| 龙海市| 大港区| 鄄城县| 库伦旗| 东兰县| 怀来县| 武冈市| 抚顺县| 和田县| 濮阳市| 沈丘县| 九龙坡区| 军事| 青阳县| 册亨县| 金平|