Adobe
Products

Top destinations

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • SiteCatalyst
  • Students
  • Elements family

Adobe Creative Cloud

  • What is Adobe Creative Cloud?
  • Design
  • Web
  • Photography
  • Video
  • Students
  • Teams
  • Enterprise
  • Educational institutions

Design and photography

  • Photoshop
  • Illustrator
  • InDesign
  • Adobe Muse
  • Lightroom

Video

  • Adobe Premiere
  • After Effects

Web development and HTML5

  • Edge Tools & Services [opens in a new window]
  • Dreamweaver
  • Gaming [opens in a new window]

Adobe Marketing Cloud

  • What is Adobe Marketing Cloud?
  • Digital analytics
  • Social marketing
  • Web experience management
  • Testing and targeting
  • Media optimization

Analytics

  • SiteCatalyst
  • Adobe Discover
  • Insight

Social

  • Adobe Social

Experience Manager

  • CQ
  • Scene7

Target

  • Test&Target
  • Recommendations
  • Search&Promote

Media Optimizer

  • AdLens
  • AudienceManager
  • AudienceResearch

Document services

  • Acrobat
  • EchoSign [opens in a new window]
  • FormsCentral [opens in a new window]
  • SendNow [opens in a new window]
  • Acrobat.com [opens in a new window]

Publishing

  • Digital Publishing Suite

  • See all products
Business solutions

By business need

  • Digital analytics
  • Digital publishing
  • Document management
  • Media optimization
  • Social marketing
  • Testing and targeting
  • Video editing and serving
  • Web development [opens in a new window]
  • Web experience management
  • See all business needs

By industry

  • Broadcast
  • Education
  • Financial services
  • Government
  • Publishing
  • Retail
  • See all industries
Support & Learning

I need help

  • Products
  • Adobe Creative Cloud
  • Adobe Marketing Cloud
  • Forums [opens in a new window]

I want to learn

  • Training and tutorials
  • Certification [opens in a new window]
  • Adobe Developer Connection
  • Adobe Design Center
  • Adobe TV [opens in a new window]
  • Adobe Marketing Center
  • Adobe Labs [opens in a new window]
Download
  • Product trials
  • Adobe Flash Player
  • Adobe Reader
  • Adobe AIR
  • See all downloads
Company
  • Careers at Adobe
  • Investor Relations
  • Newsroom
  • Privacy
  • Corporate Social Responsibility
  • Customer Showcase
  • Contact us
  • More company info
Buy
  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers
  • Adobe Marketing Cloud sales [opens in a new window]
Search
 
Info Sign in
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Welcome,
My Adobe
My orders
My information
My preferences
My products and services
Sign out
My cart
Privacy My Adobe
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out Privacy 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
Promotions
Estimated shipping
Tax
Calculated at checkout
Total
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
CSS3Dreamweavermobiletemplateswebsite
Was this helpful?
Yes   No

By clicking Submit, you accept the Adobe Terms of Use.

 
Thanks for your feedback.

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

  • Simple styling with CSS
  • HTML5 and CSS3 in Dreamweaver CS5.5 – Part 2: Styling the web page
  • Taking a Fireworks comp to a CSS-based layout in Dreamweaver – Part 2: Markup preparation
  • Taking a Fireworks comp to a CSS-based layout in Dreamweaver – Part 3: Layout and CSS
  • Designing with CSS – Part 5: Building site navigation
  • Creating your first website – Part 3: Styling the header and navigation menu
  • Small web team uses CSS to develop big-time magazine site
  • Tableless layouts with Dreamweaver CS4
  • Creating a simple three-column design
  • Working with images in Dreamweaver CS4

Tutorials and samples

Tutorials

  • Working with updated responsive layout features in the Dreamweaver CS6 update
  • Creating your first website – Part 3
  • Creating your first website – Part 2
  • Creating your first website – Part 5

Samples

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

Products

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • Digital Publishing Suite
  • Elements family
  • SiteCatalyst
  • For education

Download

  • Product trials
  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR

Support & Learning

  • Product help
  • Forums

Buy

  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers

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 © 2013 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

Ad Choices

Reviewed by TRUSTe: site privacy statement