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

Creating the foundation page

Now that we have downloaded the library, the next stage is to set up our base project that we can reuse throughout this book. This is going to be a simple HTML5 document, which will contain the basic skeleton we will need for our projects.

For my code editor, I will be using Sublime Text 2, for which we set up support for Less back in Chapter 2, Building a Less Development Toolkit. This is available for download from Sublime Text's website at http://www.sublimetext.com/2, although you can use whichever editor you are most comfortable with.

Let's start by creating our base project file. In a new folder called lessjs, create a new file and add the following code:

<!DOCType html>
<head>
  <meta charset="utf-8">
  <title>Untitled</title>
  <link rel="stylesheet/less" href="css/project.less">
</head>
<body>
</body>
</html>

Tip

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

Save this as project.html. We'll make reference to this throughout the book and it will be the basis for each of our projects when using Less.

主站蜘蛛池模板: 南充市| 涟源市| 肇州县| 科技| 大新县| 平顶山市| 彭泽县| 文水县| 丘北县| 崇仁县| 湟源县| 乃东县| 东阿县| 河西区| 雅江县| 淅川县| 彭水| 綦江县| 达拉特旗| 依兰县| 临高县| 德钦县| 繁峙县| 双峰县| 白玉县| 桂平市| 台东县| 阿尔山市| 诸暨市| 田东县| 合山市| 清新县| 日土县| 定日县| 松溪县| 普陀区| 凤山县| 安吉县| 方山县| 调兵山市| 泰宁县|