Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 2 : Go to the code 5 - 1 . html file and within the head section insert link elements linking the page to

Task 2: Go to the code5-1.html file and within the head section insert link elements linking the page to the code5-1_layout.css and code5-1_media.css files.
Task 3: Add a viewport meta tag to the document head to set the width of the layout viewport equal to the width of the device and set the initial scale of the viewport to 1.0.
Open code5-1_media.css file and create a media query for devices with a maximum width of 500 pixels. Within the query do the following:
Set the display of the img element within the article element to none.
Center the text contained within the ul element belonging to the submenu class.
Task 4: Create a media query for devices with a maximum width of 500 pixels.
Create a media query for devices with a minimum width of 501 pixels. Within the query do the following:
Float the nav element on the left page margin.
Set the width of the nav element to 130 pixels and the height to 400 pixels.
Set the top margin of the nav element to 30 pixels, the right margin to 25 pixels, and the bottom and left margins to 0 pixels.
Task 5: Create a media query for devices with a minimum width of 501 pixels.
Create a media query for devices with a minimum width of 710 pixels. Within the query do the following:
Set the float property of the nav element to none, its width to 100% and its height to auto. Set the nav element margins to 0.
Set the display of ul elements of the mainmenu class to flex with the flex flow in the row direction with no wrapping; justify the contents of the flexbox in the center.
Set the flex property of li elements with the ul.mainmenu element to have a growth factor of 0, a shrink factor of 1, and a basis value of 120 pixels.
Task 6: Create a media query for devices with a minimum width of 710 pixels.
View the page under different screen widths, verifying that the menu format changes as the screen width changes as shown in Figure 557.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions

Question

4. Describe the role of narratives in constructing history.

Answered: 1 week ago

Question

8. Explain the contact hypothesis.

Answered: 1 week ago