Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Student and Teacher Editions
More products
Solutions
Creative tools for business
Digital marketing
Digital media
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Buy
Home use for personal and home office
Education for students, educators, and staff
Business for small and medium businesses
Licensing programs for businesses, schools, and government
Special offers
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
My products and services
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out My orders My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / Dreamweaver Developer Center /

Customizable starter design for multiscreen development

by Chris Converse

Chris Converse
  • Codify Design Studio

Content

  • Overview of the template features
  • Watch the video: Using the custom template
  • Preview and download the template

Created

11 July 2011

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
CSS3 Dreamweaver mobile templates website

Requirements

User level

All

Required products

  • Dreamweaver (Download trial)

Many developers and designers have had to face the challenge of creating a mobile version of a website. Typically this has consisted of creating a series of HTML and CSS files that target specific devices or mobile browsers. With CSS3 being adopted at breakneck speeds, it is time to leverage the power of CSS3 media queries.

Read the article to learn about key advantages of using media queries and the features of this template, preview and download the template and related files and assets, and watch a short video to get an overview of the template's features.

Overview of the template features

Media queries allow you to create CSS rules that are sensitive to the size of the browser's viewport. This means you can change your design based on the amount of space the user's browser has. When you combine this with techniques such as absolute positioning, float properties, CSS sprites, and font styles, you can morph a single HTML web page into a customized design and user experience.

This template demonstrates the possibilities available to you when you plan your design across different devices. One of the first things you may notice is the banner area. As you decrease the horizontal real estate from common computer-size to common tablet-size, you change the height and image of the banner, use a smaller version of the logo, and resize and reposition the navigation. When you decrease the size even more, you decrease the banner and logo again, and also move the navigation down below the content. This convention follows many mobile navigation systems, as it elevates the content before the navigation options.

Figure 1.  In each optimized view, you change the CSS rules applied to a single set of HTML markup, allowing individual devices to display the same web page in different constructs, based on the pixels available in the device's viewport.
Figure 1. In each optimized view, you change the CSS rules applied to a single set of HTML markup, allowing individual devices to display the same web page in different constructs, based on the pixels available in the device's viewport.

Varied image compression

Another advantage of media queries is the fact that you can use CSS to load images based on screen size as well. This template uses CSS to load all imagery. This technique allows you to load specific images based on the results of the CSS3 media query. What's more, you can apply more compression to images targeted at hand-held devices, and less compression on images targeted at tablets and computer screens.

With many phones and tablets sporting resolutions of 140ppi or better, highly compressed JPEG images still hold up very well on these screens. This allows you to make the images very small in file size, and still keep much of the integrity of the original image.

Figure 2 shows the combined file size used by each set of images. As you can see, the hand-held, or small version, of the graphics use only 75% of the file size used in the larger, or computer-sized, images.

Figure 2. Combined file size of image sets.
Figure 2. Combined file size of image sets.

Activating and deactivating absolute positioning

Another nice feature of this template is the way the top navigation drops below the content on smaller screens (see Figure 3). This is achieved by applying the navigation markup after the content container, then using absolute positioning to move it to the top of the screen for medium and larger displays.

Figure 3. The navigation drops below the content on smaller screens.
Figure 3. The navigation drops below the content on smaller screens.

This provides an optimal user experience for each display, as it is customary to provide navigation after content on hand-held devices, whereas setting top, or left, navigation on larger displays proves to be more user-friendly. In addition to moving the position of the navigation, you also change the design of the navigation to match more common hand-held design conventions.

Forging ahead with HTML5 and CSS3

This HTML template is created using HTML5. Included in the template is a reference to a JavaScript file, provided by Google, allowing versions of Internet Explorer 8 and earlier to render the HTML5 properly. In this case, HTML5 allows you to reduce the number of DIVs in the page by using such tags as <figure>, <nav>, <header>, and <footer>, to name a few. This reduces the number of HTML tags you'd normally use in earlier versions of HTML.

In order to let earlier versions of Internet Explorer understand HTML5, this template uses Google's publically available html5shiv JavaScript. This script is inserted with a conditional HTML comment that is unserstood by all versions of Internet Explorer, and is only used if the user is using a IE 8 or earlier (see Figure 4).

Figure 4. Workaround for Internet Explorer 8.
Figure 4. Workaround for Internet Explorer 8.

In addition to HTML5, I've also used CSS3 features for elements such as rounded corners, gradients, and drop shadows. In some cases, Internet Explorer will ignore all aspects of these CSS rule attributes. To ensure the design still looks good in in older versions of Internet Explorer, I've also created a special CSS file.

Watch the video: Using the custom template

Get an overview of this provided template that uses CSS3 media queries. (Running time: 11:45)

Preview and download the template

Download the HTML, CSS, and source Photoshop files related to this template.

fig05

More Like This

  • What's new in Dreamweaver CS5.5
  • Introduction to media queries – Part 1: What are media queries?
  • Turning a design into HTML and CSS using the Fireworks to Dreamweaver workflow – Part 1: Exporting the design
  • Turning a design into HTML and CSS using the Fireworks to Dreamweaver workflow – Part 2: Modifying the HTML and CSS
  • Styling and inserting a Spry Menu Bar 2.0 widget with the Adobe Widget Browser
  • Simple styling with CSS
  • Code editing in Dreamweaver
  • From table-based to tableless web design with CSS – Part 1: CSS Basics
  • Creating your first website – Part 3: Adding content to pages
  • Creating your first website – Part 4: Adding the main image text

Tutorials and samples

Tutorials

  • Understanding HTML5 semantics: Changed and absent elements
  • Mobile app with PhoneGap: Submitting to the Apple App Store
  • PhoneGap and Dreamweaver: Releasing on iOS
  • Mobile app with PhoneGap: Creating a release build for Android

Samples

  • Responsive design with jQuery marquee
  • Customizable starter design for jQuery Mobile
  • Customizable starter design for HTML5 video
  • Customizable starter design for multiscreen development

Dreamweaver user forum

More
04/23/2012 Resolution/Compatibility/liquid layout
04/20/2012 using local/testing server with cs5 inserting images look fine in the split screen but do not show
04/18/2012 Ap Div help
04/23/2012 Updating

Dreamweaver Cookbook

More
11/07/2011 Simple social networking share buttons
09/20/2011 Registration form that will generate email for registrant to validate
08/21/2011 Spry Accordion - Vertical Text - Auto Start on Page Load - Mouse Over Pause
08/17/2011 Using cfdump anywhere you like

Products

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile Apps
  • Photoshop
  • Touch Apps
  • Student and Teacher Editions

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • For personal and home office
  • For students, educators, and staff
  • For small and medium businesses
  • For businesses, schools, and government
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy Policy and Cookies (Updated)

Ad Choices

Reviewed by TRUSTe: site privacy statement