Create a new website that incorporates css media

Assignment Help Basic Computer Science
Reference no: EM131841113

Assignment Instructions

In this assignment, you will create a new website that incorporates CSS media queries into the design. This will allow your page layout to change based on whether a visitor to your site is using a smartphone, tablet, or desktop computer. With media queries, you can anticipate and design for a variety of viewing experiences.

New Website

Using the design you created in the Wireframing assignment as your guide, create a new website of at least five pages. The subject matter of the site is up to you but should be a topic of academic interest-whether related to your major or an area of specialized knowledge. Each of the web pages should include images and/or text and there should be clear navigation between each of the pages.

Media Queries

Next, you will create three different CSS style sheets: "mobile.css," "tablet.css," and "desktop.css." Link to your external style sheets with the following code. This goes inside the head section of each of your HTML documents.

<!-- Media query for narrow browser width -->
<link rel="stylesheet" media="only screen and (max-width: 480px)" href="mobile.css">

<!-- Media query for medium browser width -->
<link rel="stylesheet" media="only screen and (min-width: 481px) and (max-width: 960px)" href="tablet.css">

<!-- Media query for full browser width -->
<link rel="stylesheet" media="only screen and (min-width: 961px)" href="desktop.css">

<!-- Prevent smartphones from scaling pages down -->
<meta name="viewport" content="initial-scale=1">

As the comments indicate, these media queries assess a viewer's browser width and use that information to determine which of three style sheets to use for the page: mobile.css, tablet.css, or desktop.css. Make sure these links match your CSS file names and their location.

Alternate Style Sheets

Now that your Web pages have the flexibility to access different style sheets, the next step is to optimize the layout with CSS for each of the widths specified. For example, a three-column layout could be used for desktop viewing, a two-column layout for tablets, and a one-column layout for smartphones. You should structure your HTML code with div tags in order to "float" sections of content alongside each other when appropriate. In addition to layout changes, feel free to tweak the formatting to optimize each of the three style sheets.

Here is a list of required elements to include.

  • Add media queries to each of your HTML pages to choose among alternate style sheets. Feel free to copy and paste the code above.
  • Create three separate CSS style sheets-desktop.css, tablet.css, and mobile.css-that correspond to the media queries.
  • Add div tags to logical column sections of your HTML documents.
  • Add style rules that allow your divs to float next to each other.
  • Modify each style sheet for optimal viewing with different browser widths.

Submitting Your Assignment

Upload your site files to the i6 Unix server. Your files and directories should go in the i6 directory called "public_html." Test your pages again once they are live on the Web server, varying browser width to observe style changes.

Submit the following here in NYU Classes:

  • The URL to your assignment in the general form of
  • A compressed archive containing all the files (HTML, CSS, and images) of your website

Reference no: EM131841113

Questions Cloud

An overview describing how multimedia has evolved : Background: You're currently working for a company with outdated multimedia tools.
What are the stages and drivers of it infrastructure : What is IT infrastructure, and what are the stages and drivers of IT infrastructure evolution?
How long should all five oil-drilling rigs take to complete : Problem, identified how long it should take to complete the fifth oil-drilling platform that Natural Resources plans to purchase.
Who invented the laser printer : Now trace this series of who built on who's work. Who invented the laser printer? Who was that, and what did he win his award for?
Create a new website that incorporates css media : In this assignment, you will create a new website that incorporates CSS media queries into the design. This will allow your page layout to change
What insights does public service tell us about hrm function : What insights does public service and street level bureaucracy tell us about HRM functions in the public sector?
Who invented the logo turtle : Who invented the Logo Turtle? Who used the Logo Turtle to have fourth graders learn about fractions in mathematics?
Find budget as the cost of the twentieth iteration : Suppose that you are assigning costs to a major project to be undertaken this year by your firm, DynoSoft Applications. One particular coding process involves.
What is the rate of return on the margin trade : What is the margin in the account when she first purchases the stock? What is the rate of return on the margin trade?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd