New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN: 9781305503922
Author: Patrick M. Carey
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Question
Chapter 5, Problem 17CP1
(a)
Program Plan Intro
To set the width of class size1 of comic book panel img elements to 100% within the media query style in the file gp_layout.css.
(b)
Program Plan Intro
To set the width of class size2 of comic book panel img elements to 60% within the media query style in the file gp_layout.css.
(c)
Program Plan Intro
To set the width of class size3 of comic book panel img elements to 40% within the media query style in the file gp_layout.css.
(d)
Program Plan Intro
To set the width of class size4 of comic book panel img elements to 30% within the media query style in the file gp_layout.css.
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
Step 2
Below the tablet media query, add a new comment with the text, Media Query for Desktop Viewport. Below the comment, add a new media query that targets a screen with a minimum width of 769px and print.
Within the desktop media query, add a new comment with the text, Desktop Viewport: Style rule for header. Below the comment, add a style rule for the header selector that sets the padding to 2%.
Within the desktop media query, below the header style rule, add a new comment with the text, Desktop Viewport: Style rules for nav area. Below the comment, add a style rule for the nav li a selector that sets the padding to 0.5em on the top and bottom and 1.5em on the left and right.
Add another style rule for the nav li a selector that uses the hover pseudo-class and sets the color to #373684 and the background-color to #e5e9fc.
2
Within the desktop media query, below the nav area style rules, add a new comment with the text, Desktop Viewport: Style rules…
In the large desktop media query, below the last style rule, add the following style rules:
Add a style rule for the grid class selector that sets the grid template columns to a four column layout.
Add a style rule for the aside element that sets the grid column value to 1 / span 4, and set the font size to 3em.
My CSS
/*CSS Reset*/
body, header, nav, main, footer, img, h1, h3, ul, aside, figure, figcaption {
margin: 0;
padding: 0;
border: 0;
}
/*Style rules for body and images*/
body {
background-color: #f6eee4;
}
img {
max-width: 100%;
display: block;
}
/* Style rules for mobile viewport */
/* Style rules to show mobile class and hide tab-desk class */
.mobile {
display: block;
}
.tab-desk {
display: none;
}
/* Style rules for header area */
.mobile h1 {
padding:2%;
text-align:center;
font-family:'Emblema One', cursive;
}
.mobile h3 {
padding:2%;
text-align:center;
font-family:'Lora', serif;
}
/*Style rules for navigation area*/
nav {…
Create a media query for all screen devices with a width of at least 481 pixels. Within the media query, create a style that hides the display of the navicon.
Chapter 5 Solutions
New Perspectives on HTML5, CSS3, and JavaScript
Ch. 5.2 - Prob. 8QCCh. 5.2 - Prob. 9QCCh. 5.3 - Prob. 8QCCh. 5.3 - Prob. 9QCCh. 5 - Prob. 1RACh. 5 - Prob. 2RACh. 5 - Prob. 3RACh. 5 - Prob. 4RACh. 5 - Prob. 5RACh. 5 - Prob. 6RA
Ch. 5 - Prob. 7RACh. 5 - Prob. 8RACh. 5 - Prob. 9RACh. 5 - Prob. 10RACh. 5 - Prob. 11RACh. 5 - Prob. 12RACh. 5 - Prob. 13RACh. 5 - Prob. 14RACh. 5 - Prob. 15RACh. 5 - Prob. 16RACh. 5 - Prob. 17RACh. 5 - Prob. 18RACh. 5 - Prob. 19RACh. 5 - Prob. 20RACh. 5 - Prob. 21RACh. 5 - Prob. 22RACh. 5 - Prob. 23RACh. 5 - Prob. 24RACh. 5 - Prob. 25RACh. 5 - Prob. 26RACh. 5 - Prob. 1CP1Ch. 5 - Prob. 2CP1Ch. 5 - Prob. 3CP1Ch. 5 - Prob. 4CP1Ch. 5 - Prob. 5CP1Ch. 5 - Prob. 6CP1Ch. 5 - Prob. 7CP1Ch. 5 - Prob. 8CP1Ch. 5 - Prob. 9CP1Ch. 5 - Prob. 10CP1Ch. 5 - Prob. 11CP1Ch. 5 - Prob. 12CP1Ch. 5 - Prob. 13CP1Ch. 5 - Prob. 14CP1Ch. 5 - Prob. 15CP1Ch. 5 - Prob. 16CP1Ch. 5 - Prob. 17CP1Ch. 5 - Prob. 18CP1Ch. 5 - Prob. 19CP1Ch. 5 - Prob. 1CP2Ch. 5 - Prob. 2CP2Ch. 5 - Prob. 3CP2Ch. 5 - Prob. 4CP2Ch. 5 - Prob. 5CP2Ch. 5 - Prob. 6CP2Ch. 5 - Prob. 7CP2Ch. 5 - Prob. 8CP2Ch. 5 - Prob. 9CP2Ch. 5 - Prob. 10CP2Ch. 5 - Prob. 11CP2Ch. 5 - Prob. 12CP2Ch. 5 - Prob. 13CP2Ch. 5 - Prob. 14CP2Ch. 5 - Prob. 15CP2Ch. 5 - Prob. 16CP2Ch. 5 - Prob. 17CP2Ch. 5 - Prob. 18CP2Ch. 5 - Prob. 19CP2Ch. 5 - Prob. 20CP2Ch. 5 - Prob. 21CP2Ch. 5 - Prob. 1CP3Ch. 5 - Prob. 2CP3Ch. 5 - Prob. 3CP3Ch. 5 - Prob. 4CP3Ch. 5 - Prob. 5CP3Ch. 5 - Prob. 6CP3Ch. 5 - Prob. 9CP3Ch. 5 - Prob. 2CP4
Knowledge Booster
Similar questions
- QUESTION: Row & Page Header Styles Go to the Row Styles section. Karen has placed all elements that should be treated as grid rows in the row class. For every element of the row class, create a style rule that expands the element to cover any floating content within the element. (Hint: Use the technique shown in the tutorial that employs the after pseudo-element.) Go to the Page Header Styles section. In this section, you will create styles for the content of the body header. Create a style rule for the logo image within the body header that displays the image as a block with a width of 70% of the header, floated on the left margin. The header also contains a navigation list that Karen wants to display vertically. Create a style rule for the nav element within the body header that: floats the navigation list on the left, sets the size of the left and right padding to 2%, sets the width of the navigation list to 30% of the width of the header. The hypertext links in the…arrow_forwardQUESTION: Row & Page Header Styles Go to the Row Styles section. Karen has placed all elements that should be treated as grid rows in the row class. For every element of the row class, create a style rule that expands the element to cover any floating content within the element. (Hint: Use the technique shown in the tutorial that employs the after pseudo-element.) Go to the Page Header Styles section. In this section, you will create styles for the content of the body header. Create a style rule for the logo image within the body header that displays the image as a block with a width of 70% of the header, floated on the left margin. The header also contains a navigation list that Karen wants to display vertically. Create a style rule for the nav element within the body header that: floats the navigation list on the left, sets the size of the left and right padding to 2%, sets the width of the navigation list to 30% of the width of the header. The hypertext links in the…arrow_forwardHead, Foot, Body Add a thead row group element containing two rows. In the first row, insert five thelements containing the text shown in the image in the Introduction section. The first heading cell should span two rows. In the second row, add four headings cells containing the prices of the plans shown in the image in the Introductionsection. Use a br element to display the price information on two separate lines. Add a tfoot row group element containing a single table row with a heading thelement displaying the text Summary . Add four data tdelements containing a description of each of the service plans. (Note: You can copy the summary text for each service plan from the mi_data.txt file.) Add a tbody row group element. In each row within the row group, add a th element containing the text shown in the image in the Introductionsection and four td elements containing the data values for each plan.arrow_forward
- First I have to Nest an img element within the header element below the heading element. Use images/web-design.jpg for the value of the src attribute. Add an alt attribute with a value of computer with the text web design. Add a height attribute with a value of 326px and add a width attribute with a value of 450px. 2- In the nav element, add a relative link to the text, Home, that links to index.html. Add a relative link to the text, Learn HTML, that links to html.html. Add a relative link to the text, Learn CSS, that links to css.html. Add a relative link to the text, Learn JavaScript, that links to js.html. 3-Insert two new blank lines after the starting main tag. Add a div element with an id attribute value of template. Close the div after the paragraph element with the content. 4- Change the first paragraph element within the div with the template id to an h3 element Change the remaining paragraph elements within the div with the id template to list items…arrow_forwardi need this assignment solved. below is index.html and styles.css In the index.html file, add a class attribute with a value of btn to paragraph elements two, three, and four within the main element. In the styles.css file, below the main p style rule, add a new style rule for the btn class that specifies a background-color value of #375f1b, padding value of 2%, top and bottom margin values of 2% and left and right margin values of auto, width value of 80%, text alignment of center, and a border radius of 5px Below the btn style rule, add a new style rule for anchor elements within the btn class that specifies a color value of #ebf7e3, removes the underline, sets a font size of 1.25em, and displays the content as a block. In the index.html file, add a class attribute with a value of corner to the image element. In the styles.css file, below the btn a style rule, add a new style rule for the corner class selector that specifies a border-radius of 12px. index.html…arrow_forwardIn the styles.css file, below the tablet media query, add a comment with the text, Media Query for Large Desktop Viewports. Below the comment, add a media query that targets a screen with a minimum width of 1921px. Add the following style rules to the large desktop media query: Style rule for the body element that sets the background to a linear-gradient with the color values #f6eee4 and #78593a Style rule for the #wrapper selector that sets the width to 1920px, top and bottom margin to 0, and left and right margins to auto Style rule for the main selector that sets the background-color to #f6eee4. --my CSS-- /*Media Query for Large Desktop Viewports */ @media screen and (min-width: 1921px) { /*Style rule for body*/ .gradient { background: linear-gradient(#f6eee4, #78593a); } #wrapper { width: 1920px; margin-top: 0; margin-bottom: 0; margin-right: auto; margin-left: auto; } main { background-color: #f6eee4; } }arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- New Perspectives on HTML5, CSS3, and JavaScriptComputer ScienceISBN:9781305503922Author:Patrick M. CareyPublisher:Cengage LearningCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE LNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage