Free Sample
+ Collection

Less Web Development Essentials

Bass Jobsen

Less is a powerful CSS preprocessor that extends the language with more features, and this book will tell you all you need to know to make the most of it. More capable, more robust CSS is just a user-friendly tutorial away.
RRP $17.99
RRP $29.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781783981465
Paperback202 pages

About This Book

  • Produce clear, concise, and well-constructed code that compiles into standard compliant CSS
  • Explore the core attributes of Less and learn how to integrate them into your site
  • Optimize Twitter's Bootstrap to efficiently develop web apps and sites

Who This Book Is For

If you use CSS3 in your web development tasks and want to create maintainable and reusable code with Less, this book is ideal for you. Although you need to have some experience in web development, even beginners will find this book useful.

Table of Contents

Chapter 1: Improving Web Development with Less
Using CSS3 for styling your HTML
Compiling Less
Your first layout in Less
Preventing cross-browser issues with CSS resets
CSS transitions, transformations, and animations
Server-side compiling
Chapter 2: Using Variables and Mixins
Escaping values
Chapter 3: Nested Rules, Operations, and Built-in Functions
The navigation structure
Nested rules
Operating on numbers, colors, and variables
The & symbol
Property merging
Built-in functions
The box-shadow mixin
Chapter 4: Avoid Reinventing the Wheel
Revisiting background gradients
Testing your code
Prebuilt mixins
Integrating other techniques into your projects using Less
Chapter 5: Integrate Less in Your Own Projects
Importing CSS into Less
Migrating your project
Media queries and responsive design
Using grids in your designs and work flow
Building your project with a responsive grid
Using the grid mixins to build a semantic layout
Extending your grids
Chapter 6: Bootstrap 3, WordPress, and Other Applications
Bootstrap 3
Semantic UI – another Less framework
Other frameworks to build your grid with Less
WordPress and Less
Alternative compilers for compiling your Less code

What You Will Learn

  • Compile Less code into readable and maintainable CSS
  • Integrate Less into your own projects
  • Reuse your code to prevent code duplications
  • Reduce the development and maintenance time of your projects
  • Use variables and mixins to write reusable and portable code
  • Build a responsive grid with Less to create beautifully responsive site layouts
  • Customize Twitter's Bootstrap 3 with Less

In Detail

Less is a CSS preprocessor that essentially improves the functionality of simple CSS with the addition of several features. The book begins by teaching you how Less facilitates the process of web development. You will quickly then move on to actually creating your first layout using Less and compiling your very first Less code.

Next, you will learn about variables and mixins and how they will help in building robust CSS code. In addition, you'll learn how to keep your code clean and test it by using style guides. We will then move on to the concept of Bootstrapping and the strength of using Less with Twitter Bootstrap. Going one step further, you will be able to customize Twitter's Bootstrap 3 using Less.

Finally, you will learn how to integrate Less into your WordPress themes and explore other web apps that use Less. By leveraging this powerful CSS preprocessor, you will be able to consistently produce amazing web applications while making CSS code development an enjoyable experience.


Read More