Adobe Dreamweaver CC

Use customizable starter designs for jQuery Mobile

Learn how to use this customizable starter design for your jQuery Mobile projects. (Try it, 6 min)

FromChris Converse

This article features two key approaches to developing websites for mobile, preview and download the template and related files and assets, and watch a short video to learn how you can customize this template.

What do I need?

Get files Sample files to practice with (ZIP, 2 MB)

Get PDF Dreamweaver cheat sheet

Understanding jQuery Mobile development

When developing your website for use with mobile devices you have two options. You can make your design "responsive" to varying screen sizes by using CSS media queries, a technique referred to as multiscreen design, responsive design, or screen-sensitive design. The idea behind this approach is to adapt your design based on the users' screen sizes. Your web page uses a single set of HTML markup, and CSS is used to alter the appearance and layout of that HTML in order to adapt your design for varying screen sizes.

The second approach deals with using an alternate set of HTML and CSS for the mobile version of your website, while using JavaScript to alter the user experience. This approach can give your mobile website a "mobile app feel," which can tie in closer with the usability of the device's operating system. Figure 1 represents the relationship between the HTML markup and the design view of the content of a jQuery Mobile project in Dreamweaver.

Figure 1. Relationship between the HTML markup and the design view of the content of a jQuery Mobile project in Dreamweaver.
Figure 1. Relationship between the HTML markup and the design view of the content of a jQuery Mobile project in Dreamweaver.

jQuery Mobile has been developed specifically for this purpose. And Dreamweaver, has built-in support to aid you in creating mobile websites built on the jQuery Mobile framework. jQuery Mobile allows you to build pages, or screens, in a single HTML file, and control what information is seen based on user interaction. As the content slides back and forth, the user experience begins to resemble many mobile application interfaces, while allowing you to break your content into manageable pieces for small-screen consumption.

jQuery Mobile pages consist of a single HTML file, and use JavaScript to create the app-like user experience of sliding content back and forth (see Figure 2). This framework allows you to change the visible content on the screen based on the HTML markup that appears inside of certain DIV containers.

Figure 2 shows the relationship of the HTML markup to the rendered results across various hand-held, Internet-enabled devices. In addition to a single line of additional HTML markup for the logo (commented in the code), this template includes pre-sliced source Photoshop files, in addition to a modified CSS file to help you get started developing your own cutsom-designed jQuery Mobile websites.

Figure 2. jQuery Mobile pages consist of a single HTML file, and use JavaScript to create the app-like user experience of sliding content back and forth.
Figure 2. jQuery Mobile pages consist of a single HTML file, and use JavaScript to create the app-like user experience of sliding content back and forth.

Watch the video: Using the custom template

Video 1. Learn how to work with customizable starter templates for jQuery Mobile

Get an overview of this customizable starter template for your jQuery Mobile projects. (Running time: 5:46)

Let us know what you think

That's it! You're done. Please provide feedback in our survey so that we can make sure this tutorial is as useful as possible.

 

chris-converse_83x83

Chris Converse

Chris is a designer and developer at Codify Design Studio, where his design execution spans a variety of media. Chris is also a featured speaker at Adobe MAX and HOW Design conferences, as well as an author on lynda.com and udemy.com.