Book Image

Bootstrap Essentials

By : Snig Bhaumik
Book Image

Bootstrap Essentials

By: Snig Bhaumik

Overview of this book

<p>As the number of people using mobile devices to access the internet grows every moment, websites are no longer built just for desktop machines. The mobile first philosophy demands that sites are fully compatible with all the available, and predicted future mobile devices. Bootstrap allows and easily enables you to design and develop your own websites congenial to all devices, including e-readers, tablets, and so on.</p> <p>This book will familiarize you with all the features, functionalities, and architectural knowledge of the Bootstrap platform, enabling you to develop mobile friendly websites. You will begin by discovering the mobile first philosophy and what Bootstrap is. You will learn about Bootstrap’s architecture and components, and how to use Bootstrap using LESS. You will create responsive layouts using Bootstrap CSS and work with the packaged components that come along with Bootstrap. You will proceed to explore the various JavaScript components and add-ons offered by Bootstrap. Finally, you will learn how to customize Bootstrap easily to match your project-specific requirements,compile and build your Bootstrap code, and extend Bootstrap with different extensions to create more advanced websites.</p> <p>By the end of this book, you will be able to build, compile, and customize your own Bootstrap system to create mobile friendly websites.</p>
Table of Contents (15 chapters)
Bootstrap Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Preface

As the number of Internet users on mobile devices is growing every moment, your websites are no longer built only for the desktop machines. The mobile-first philosophy demands the sites to be fully compatible for all available and future mobile devices. Bootstrap allows and easily enables you to design and develop your websites congenial to all devices including various screen readers.

We have until now developed your websites using all those manual CSS classes and quite a number of various JavaScript libraries. Delivering the desired results and upgrading your websites has traditionally been quite a challenge. Mobile devices coming into the picture has made the task even more difficult. Bootstrap comes to your rescue here – providing all you need including CSS classes and JavaScript components in a single package.

This book covers all the theoretical and practical aspects of Bootstrap and makes you a proficient web developer for the mobile world. You will be able to download, include, and configure Bootstrap in your web project. You will understand the internal architecture and structure of Bootstrap and get fully familiar with the usage of Bootstrap CSS and components and become apprised of the JavaScript objects offered by Bootstrap. You will also be able to build and compile Bootstrap from the source code, and finally customize and extend to suit your requirements.

What this book covers

Chapter 1, The Evolution of CSS and Bootstrap, introduces you to a brief history of CSS and the birth of CSS3. It introduces the mobile-first philosophy and lays down the fundamental concepts and requirements of Bootstrap.

Chapter 2, Getting Started with Bootstrap, enables you to download and include Bootstrap in your project. You will get to know the files' and folders' structure of different distributions of Bootstrap. You will also start building a sample application using Bootstrap framework.

Chapter 3, Creating Responsive Layouts Using Bootstrap CSS, goes through all the major aspects of CSS classes offered by Bootstrap, including basic HTML elements, responsive classes, handling images, Bootstrap grid system, data entry forms, and so on.

Chapter 4, Packaged Components in Bootstrap, explores all the components that come in-built with the Bootstrap framework. For example, the Glyphicons, navigation bars, toolbars, panels, wells, and pagination. You will use all these components in the sample application to understand the practical usage.

Chapter 5, The JavaScript Add-ons in Bootstrap, makes you proficient with all the important JavaScript add-ons that Bootstrap offers. You will be able to use the modal windows, tabs, pills, accordians, tooltips, dropdowns, popovers, alerts, carousels, and so on.

Chapter 6, Compiling and Building Bootstrap, introduces you to the advanced usage of Bootstrap and how to establish the development environment of Bootstrap, how to compile the Bootstrap source code, and how to build the distributable version of the framework.

Chapter 7, Customizing Bootstrap, enables you to use the development environment and customize Bootstrap's default behavior to suit your own requirements.

Chapter 8, Extending Bootstrap, introduces you to the Bootstrap community marketplace where you will find different resources by which you can extend and broaden the Bootstrap default capabilities and features. For example, you will use Tree-view control and WYSIWYG editors, which are not a part of Bootstrap default offering. Finally, you will be able to create the sample application with almost all the major classes and components of Bootstrap along with the community controls.

What you need for this book

This book is a step-by-step and detailed guide to develop full device-friendly websites. It starts with the basic concepts of CSS, CSS3, and Bootstrap. It includes all the practical know-hows about all major features and functionalities offered by Bootstrap. It also shows you how to work with the Bootstrap main source code and how to customize and extend the framework.

An example application is accompanied by every step as an easy-to-follow practical exercise and demonstrates the usage of the features of Bootstrap.

In order to understand and work on this book as a reader, you need to be knowledgeable in HTML, CSS, and JavaScript. Knowledge of HTML5, CSS3, and jQuery will be an added advantage; however, the book is not essentially dependent on those prerequisites.

Who this book is for

Bootstrap Essentials is intended for all those web developers who design and develop the websites and pages using HTML, CSS, and JavaScript—irrespective of whether you have experience on mobile website development or not, this book will guide you to become an adroit Bootstrap web developer. For better understanding of Bootstrap and mobile website development, previous experience of HTML, CSS, and JavaScript will be helpful. Further knowledge in jQuery would be an added advantage. Advanced information about building and customizing Bootstrap are part of the book; thus, readers who want to have their own version of Bootstrap will be able to establish a full-fledged development environment of Bootstrap.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: " For example, this is how HTML global element is configured in Bootstrap CSS."

A block of code is set as follows:

<link rel="stylesheet" media="print" href="print.css">
<link rel="stylesheet" media="(max-width: 800px)" href="max800.css">
<link rel="stylesheet" media="(max-width: 320px)" href="max320.css">
<link rel="stylesheet" media="(orientation: portrait)" href="prt.css">
<link rel="stylesheet" media="(orientation: landscape)" href="lnd.css">

Any command-line input or output is written as follows:

npm install --prefix D:\Bootstrap grunt-cli

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "What you only need to do is to update the values of these variables in this interface and finally press the Compile and Download button at the bottom of the page."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail , and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files from your account at http://www.packtpub.com for all the Packt Publishing books you have purchased. 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.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at , and we will do our best to address the problem.