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

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
主站蜘蛛池模板: 潼关县| 南安市| 额尔古纳市| 新密市| 新源县| 堆龙德庆县| 东丰县| 漠河县| 工布江达县| 奉化市| 遂平县| 广饶县| 祁阳县| 雅安市| 鄂州市| 大庆市| 清涧县| 乌兰察布市| 五家渠市| 定陶县| 宁陵县| 辛集市| 黑水县| 西青区| 右玉县| 南平市| 鹤峰县| 栾川县| 浦北县| 江川县| 石河子市| 包头市| 侯马市| 灵台县| 凤山市| 余江县| 宜黄县| 大石桥市| 伊春市| 左贡县| 年辖:市辖区|