Book Image

Developing Mobile Web ArcGIS Applications

Book Image

Developing Mobile Web ArcGIS Applications

Overview of this book

Table of Contents (14 chapters)
Developing Mobile Web ArcGIS Applications
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Responsive design using Bootstrap


It's time to dig into Bootstrap. As we have done in previous chapters, let's start with a simple, clean code base. We will actually modify the code base that we started with in Chapter 3, Building Your First ArcGIS Mobile Application. First, we need to edit our viewport and modify our content attribute by adding width=device-width:

<meta name="viewport" content="width=device-width, initial-scale=1.0">

The special value, device-width, is the width of the screen in pixels at a scale of 100 percent in CSS.

We next need to add the compiled and minified Bootstrap CSS and JavaScript:

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>

Note

The process of minification removes all unnecessary characters from the source code without changing its functionality. This makes the library size smaller which helps...