Ready to watch this entire course?
Become a member and get unlimited access to the entire skills library of over 4,900 courses, including more Developer and personalized recommendations.Start Your Free Trial Now
- View Offline
- Implementing well-defined web standards
- Working with Modernizr and Mobile Boilerplate
- Building a first mobile web page
- Understanding content adaptation strategies
- Designing forms for mobile
- Detecting client capabilities with script
- Using server-side detection with PHP and ASP.NET
- Working with mobile browser capabilities
- Viewing and testing the mobile site on device emulators
Skill Level Beginner
Okay, to get a better idea of what can be accomplished on a mobile-optimized web site, let's take a look at the site that we are going to adapt to mobile by the end of this course. So I am going to start off by giving you a brief overview of the web site in its current desktop form and then show you what it looks like when it's been adapted to the tablet and phone form factors. So here on the homepage let's start out by looking at some of the key parts of the page. There is a logo up here at the top left, and we have a navigation bar, and you can see as I roll over some of the navigation elements, we have some dropdown menus.
There is a background image here on the main page. You can see this big background image here. There is a two-column layout, so over here on the left side, we have some monthly specials; over here on right side we've got some content. There is a video right here. And we'll scroll down, and here is our footer navigation. So let's go back up and look at the TOURS page, so I'll click on TOURS. And once again you can see we have two-column navigation. Here is our Monthly Specials, and here is some content over here. All the tours are listed, and there is links to click on to learn more about each tour.
Okay, so let's take a look all the way down. There is the footer. All right, so let's scroll back up. Now let's take a look at the CONTACT page. Okay, this is a pretty fairly standard contact form. I'll scroll down here. You can see that there is form labels. There is form fields. There is a little bit of a decoration here showing which form fields are required. They have a nice thick red border around them. Some more form fields down here, and there is our footer again. Okay, let's go back to the homepage now, and what I am going to do now is size the page down to about a tablet size.
I am going to resize this window. You can see that when it gets to about 800 pixels the layout changes. So here on the homepage you notice how the background image is still there, but everything is now in a single-column layout. So here we have our Tour Spotlight. There is our video. If we scroll down, you'll see that the Monthly Specials are now below this. And if we keep on going, you'll see that here is our footer information down here. So everything has been now reordered into a single-column layout. Let's go take a look at the TOURS page to see how that changed.
Also you notice that the rollovers are now gone. So there is no more rollover behavior. Let's click on TOURS. Once again, we have our single-column layout now. So here is the content at the top, here is all the tours, and if we scroll down, you'll see there is the Monthly Specials all arranged in one column. Let's go back to the CONTACT page. Once again, single column. You can see that there is the form, looks pretty much the same as it did before, although everything is now in an 800-pixel-wide optimized layout format.
All right, once again let's go back to the homepage. Okay, now let's scale the window down to be the size of a phone screen. So I am going to resize the window down, and you can see that when I get down to about 480 pixels or so, the window changes into mobile mode, and there are some pretty big changes here. So first, the logo is now smaller, so it takes up less area on the screen. The navigation bar is no longer a horizontal set of links. It's now vertical. And there are nice big hit targets for people's fingers.
And if we scroll down, you'll see that the Tour Spotlight is now laid out a little bit differently. Before there was the text content and then this logo was to the right side over here. So now everything is in one vertical column here. And if we keep on going down, you'll see that the Monthly Specials are laid out in a vertical column, and our footer has adapted to the layout so now, it's no longer three columns. This column is down here in the bottom and these two fit above it. Okay, so that's the homepage.
Let's take a look at how the TOURS page has changed. So here is the TOURS page, once again optimized for vertical layout. Here is our text. You'll notice how that the content for each of the tours is now collapsed. And when I move the mouse over it you can see that the tour description expands in place, and we'll see how that works with fingers on the mobile device. And once again, we scroll down, and there is our Monthly Specials and the footer. And lastly, let's take a look at how the CONTACT page has changed, so we'll click on CONTACT and we'll scroll down. And you can see now that the form labels are now top aligned.
They are no longer next to the form fields. Other than that, things pretty much look the same. The form is still laid out the same. It's now vertical, however. Check boxes are now in one vertical column, rather than horizontal groups. And we'll scroll down, and you can see that here at the bottom and the footer looks good as well. Okay, so using what we are going to learn in this course, we're going to take an existing site that works well on the desktop context and add the mobile behaviors that you've seen here.