INFO 1311 - Web Page Creation

Assignment 5 (50 points)


Responsive design is built around the concept of media queries that target specific devices and viewport sizes. When using the Mobile First strategy (section 7.11), you can code up your initial CSS given a mobile perspective and then use media queries to create additional styling as the viewport size increases.

In this assignment we will create a responsive layout using media queries and the Mobile First strategy. The files I have provided are configured using a page layout that works well with smaller mobile devices. You will then code media queries and additional CSS to create two more layouts for when the design "breaks" as the browser viewport gets larger. When the assignment is complete, you will have created CSS code for a small, medium and large layout design as shown below:

Task 1: Modifying the HTML Files:

  1. Save these five files to your module5 folder by right-clicking on the link and selecting Save Link As...:index.html, fishcreek.css, bigfish.gif, lilfish.gif, and services.html. The layout used in these files is intended for narrow mobile screens. Resize your browser to be narrower until your display is similar to the small display shown above. This simulates mobile display.
  2. Open the index.html and services.html files and add a viewport meta tag that configures the width to the device-width and sets the initial-scale to 1.0. Save both HTML files.

Task 2: Creating the Media Queries:

When using the Mobile First Strategy, the order of your CSS code is important. All CSS rules created for the smallest display should come first. The media queries created for the medium and large displays should be placed at the end of the file and be organized from the smallest display size to the largest display size.

  1. Configure a Medium Layout. --Edit the CSS and the web pages to configure a more pleasing display on a wider viewport, setting 600px as the breakpoint for the first media query. When you test your web pages and trigger the media query, the layout in the Medium Display will be implemented and your pages should look similar to the Medium Display in the figure above.
    1. Configure the CSS -- Using a text editor and open the fishcreek.css style sheet. Place your cursor below the existing styles. Configure a media query that is triggered when the minimum width is 600px or greater. Code the following styles within the media query.
    1. Configure the HTML -- You need to rework the content area on the web pages
  2. Configure a Large Layout -- Edit the CSS to configure a second media query with a 1024px breakpoint that will configure a grid layout with two columns. When you test your web pages and trigger the media query, the layout in the Large Display wireframe will be implemented and your pages should look similar to the Large Display in the figure above.
    1. Configure the CSS -- Using a text editor, open the fishcreek.css style sheet. Place your cursor below the existing styles. Configure a media query that is triggered when the minimum width is 1024px or greater. Within the media query, configure a feature query to check for support of grid layout. Code the following styles within the feature query.

Task 3: When Finished...

All students need to upload your assignment to your web site on the server and modify your INFO1311 home page (default.htm) as instructed below: