Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Responsive Web Design by Example : Beginner's Guide - Second Edition
Responsive Web Design by Example : Beginner's Guide - Second Edition

Responsive Web Design by Example : Beginner's Guide - Second Edition: Build powerful and engaging responsive websites with ease , Second Edition

eBook
$9.99 $28.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Responsive Web Design by Example : Beginner's Guide - Second Edition

Chapter 2. Web Development Tools

Every professional has a set of tools that facilitates their work and gets the job done. Likewise, we will also need our own tools to do our bit of building responsive websites. So, before we start working on the projects in this book, the following are the tools we have to prepare.

Tools that we will have to prepare include:

  • A code editor for writing codes
  • A compiler that will compile the CSS preprocessor syntax into plain CSS
  • A local server to host the websites locally during the development stage
  • A bower to manage the website libraries

Choosing a code editor

As soon as we start writing code for HTML, CSS, and JavaScript, we need a code editor. A code editor is an indispensible tool to develop websites. Technically, you will only need text editors such as TextEdit in OS X or Notepad in Windows to write and edit code. However, by using a code editor, your eyes will be less irritated.

Similar to Microsoft Word, which has been specially designed to make word and paragraph formatting more intuitive, a code editor is designed with a set of special features that improves code writing experiences such as syntax highlighting, auto-completion, code snippets, multiple line selection, and supporting a large number of languages. Syntax highlighting will display code in different colors, enhancing code readability and make it easy to find errors in the code.

My personal preference for a code editor, and the one that I will use in this book, is Sublime Text (http://www.sublimetext.com/). Sublime Text is a cross-platform code editor available...

Time for action – installing Sublime Text Package Control

Perform the following steps to install Sublime Text Package Control; this will allow us to install Sublime Text extension easily:

  1. The easiest way to install Package Control in Sublime Text is through the Sublime Text console. Open the console by navigating to the View | Console menu in Sublime Text. You should now see a new input field show up at the bottom, as shown in the following screenshot:
    Time for action – installing Sublime Text Package Control
  2. Due to the overhaul made in Sublime Text 3 that changed almost the entire API, the Package Control is now separated in two versions, one for Sublime Text 2 and the other one for Sublime Text 3. Each version requires a different piece of code to install Package Control. If you are using Sublime Text 2, copy the code from https://sublime.wbond.net/installation#st2. If you are using Sublime Text 3, copy the code from https://sublime.wbond.net/installation#st3 instead.
  3. Paste the code that you have copied from step 2 into the console input...

Time for action – installing XAMPP

XAMPP is available for Windows, OS X, and Linux. Download the installer from https://www.apachefriends.org/download.html; pick the installer in accordance with the platform you are using right now. Each platform will have a different installer with different extensions; Windows users will get .exe, OSX users will get .dmg, while Linux users will get .run. Perform the following steps to install XAMPP in Windows:

  1. Launch the XAMPP .exe installer.
  2. If the Windows User Account Control prompts Do you want to allow the following program to make changes to this computer? click on Yes.
    Time for action – installing XAMPP
  3. When the XAMPP Setup Wizard window appears, click on Next to start the setup.
  4. XAMPP allows us to select which components to install. In this case, our web server requirement is the bare minimum. We will only need Apache to run the server, so we deselect the other options. (Note: the PHP option is grayed out; it cannot be unchecked):
    Time for action – installing XAMPP
  5. After confirming the components that will be installed...

Managing project dependency with Bower

We will need a number of libraries to manage a project dependency with Bower. In the web development context, we refer to a library as a collection of code, usually CSS and JavaScript, to add features on the website. Often, the website is dependent on a particular library for it to function its prime feature. As an example, if I built a website to convert currencies, the website will require Account.js (http://josscrowcroft.github.io/accounting.js/); it is a handy JavaScript library to convert regular numbers into currency format with the currency symbol.

It is common that we may add about five or more libraries on a single website, but maintaining all the libraries used in the website and making sure that they are all up-to-date could become cumbersome. This is where Bower is useful.

Bower (http://bower.io/) is a frontend package manager. It is a handy tool that streamlines the way we add, update, and remove libraries or dependencies (libraries that...

Time for action – installing Node.js

Perform the following steps to install Node.js in Windows, OS X, and Ubuntu (Linux). You may skip directly to the section of the platform you are using.

Perform the following steps to install Node.js in Windows:

  1. Download the Node.js Windows installer from the Node.js download page (http://nodejs.org/download/). Choose your flavor for your Windows system, the 32-bit or 64-bit version, and the .msi or .exe installer.

    Tip

    32-bit or 64-bit

    Follow this page to discover if your Windows computer is running on a 32-bit or a 64-bit system http://windows.microsoft.com/en-us/windows/32-bit-and-64-bit-windows.

  2. Run the installer (.exe or .msi file).
  3. Click on the Next button of the Node.js welcome message.
  4. As usual, when you are installing a software or application, you will first be prompted by the application's license agreement. Once you have read the license, click on I accept the terms in the License Agreement and then click on the Next button to proceed...

Time for action – installing Bower

Perform the following steps to install Bower:

  1. If you are using Windows, open the command prompt. If you are using OS X or Ubuntu, open the terminal.
  2. Run the following command:
    npm install -g bower
    

    Note

    If you are having trouble installing Bower in Ubuntu, run the command with sudo.

What just happened?

We have just installed Bower on the computer, which enables the bower command. The -g parameter that we included in the preceding command installs Bower globally, so that we are able to execute the bower command in any directory in the computer.

Bower commands

After installing Bower, we have access to a set of command lines to operate Bower functionalities. We will run these commands in the terminal, or in the command prompts if you are using Windows, just like we installed Bower with the npm command. All commands start with bower and are followed by the command keyword. The following is the list of commands that we may use frequently:

Command

Function

...

Summary

In this chapter, we have installed Sublime Text, XAMPP, Koala, and Bower. All these tools will facilitate us in building the websites. As we have got the tools prepared, we can now start working on the projects. So, let's move on to the next chapter and start the very first project.

Left arrow icon Right arrow icon

Description

This is the ideal reference for both new and existing web developers who want to be able to augment their skills and showcase their content in a truly professional manner.

What you will learn

  • Use Responsive Grid System, Bootstrap, and Foundation frameworks for responsive web design
  • Build a semantic website structure with HTML5 elements
  • Determine the responsive website persona with CSS3
  • Harness the power of CSS preprocessor to compose programmable and more maintainable CSS
  • Customize and extend responsive design frameworks
  • Use Bower to organize website dependencies
  • Learn how to decide which framework best suits your project specification

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 25, 2014
Length: 258 pages
Edition : 2nd
Language : English
ISBN-13 : 9781783553266
Languages :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Nov 25, 2014
Length: 258 pages
Edition : 2nd
Language : English
ISBN-13 : 9781783553266
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 158.97
Responsive Web Design by Example : Beginner's Guide - Second Edition
$48.99
AngularJS Web Application Development Blueprints
$54.99
Responsive Web Design with HTML5 and CSS3, Second Edition
$54.99
Total $ 158.97 Stars icon
Banner background image

Table of Contents

10 Chapters
1. Responsive Web Design Chevron down icon Chevron up icon
2. Web Development Tools Chevron down icon Chevron up icon
3. Constructing a Simple Responsive Blog with Responsive.gs Chevron down icon Chevron up icon
4. Enhancing the Blog Appearance Chevron down icon Chevron up icon
5. Developing a Portfolio Website with Bootstrap Chevron down icon Chevron up icon
6. Polishing the Responsive Portfolio Website with LESS Chevron down icon Chevron up icon
7. A Responsive Website for Business with Foundation Chevron down icon Chevron up icon
8. Extending Foundation Chevron down icon Chevron up icon
A. Pop Quiz Answers Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.7
(3 Ratings)
5 star 66.7%
4 star 33.3%
3 star 0%
2 star 0%
1 star 0%
A. Zubarev Feb 16, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
As a data practitioner and BI person I am always looking for ways to present my data more visually appealing and yet easy to share. With the advance of the internet technologies and the introduction of the HTML5 standard in particular it became increasingly easier to create sophisticated,professionally looking single page websites rich in content delivering insights in realtime.Responsive Web Design by Example book met my expectations in my attempts to grasp with and build some foundation to delivering 21st Century web experience to my users. This relatively long book for beginners is actually covering a lot of ground. From setting your web development shop tools to embarking on enterprise grade Foundation Framework which is used by the most prominent companies, to using Koala and compiled CSS.The journey though was not without some small hiccups where bower would not function on my Ubuntu (https://github.com/joyent/node/issues/3911 provides the workaround), nevertheless, going through the book was pure fun. Thoriq does provide excellent support to his readers. The tools selection was tasteful and carefully chosen. The reader will build several stunning websites the author calls simple (well for me it was pure art).The most important aspects of the book I realize are the old IE polyfills and the use of Koala, the second most important item would be minimized/compressed JavaScript libraries and then LESS (CSS enhancers). The book also covers all the needed nuances to when it comes to building portable/mobile device friendly web sites, this is a must nowadays to account for small viewports. Bower, NodeJS are covered, but I would take courage to say not deep enough, but hey it is a beginner’s book, besides, Packt has a number of books on the latter. Let me stress that out: I suggest extra reading on NodeJS because it is the cornerstone of many single page web applications.The book does not stop at implementing the basics, but shows how to extend a framework. I suggest the reader should concentrate on the Foundation Framework the most because out of all it looks like being the most likely used at your next project or be in demand on the market.Good book for those starting in the enterprise web development.Excellent job Thoriq and Packt Publishing, I am giving this book a 5 out of 5!
Amazon Verified review Amazon
Philip Arad Feb 06, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Responsive web design is one of the most important topics in web development nowadays.Due to the huge volume of different device sizes and resolutions, any website is expected to be responsive in order to make it presentable on any screen size, on desktop, phones and tablets.If you want to learn the principles of responsive web design, the new book'Responsive Web Design by Example : Beginner's Guide' by Thoriq Firdaus from Packt Publishing is the book you are looking for.This book will teach you how to build presentable, responsive websites through examples, tips, and best practices of code writing and project organization.You will learn to:* Use Responsive Grid System, Bootstrap, and Foundation for responsive web design* Build a semantic website structure with HTML5 elements* Determine the responsive website persona with CSS3* Harness the power of CSS preprocessor to compose CSS* Customize and extend responsive design frameworks* Use Bower to organize website dependencies* Learn how to decide which framework best suits your project specification in DetailBy following the detailed step-by-step instructions in this book, you can elevate your web site to adapt it to the new era of mobile.
Amazon Verified review Amazon
john cable Jun 01, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Worthwhile update to the original - now using Responsive.js instead of Skeleton for the intro stuff. Unfortunately, suffers from same issue as original: some of the steps are missing to make the code work, particularly with Responsive.jsStill a good intro to responsive web design and the examples have been freshened up from the first edition.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.