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

Building an alternative for fluid grids with Frameless


The Frameless grid offers you an alternative to fluid grids. The grid does not add more pixels when the screen width increases, but adds additional columns for wider screens. In this recipe, you will build a site navigation that stacks into two columns on small screens with centers floated on wider screens and moves to the right-hand side of the layout for wide screens.

Getting ready

You will need to download the Less template for the Frameless grid for this recipe. You can download this Less template at https://github.com/jonikorpi/Frameless/blob/master/frameless.less. To see how the navigation acts for different screen widths and browser zoom levels, you should load the HTML code into your browser and compile the Less code with the client-side less.js compiler.

You can read how to use the client-side less.js compiler in the Downloading, installing and integrating less.js recipe of Chapter 1, Getting to Grips with the Basics of Less. For...