Question

Open the debug3-4.css file. The body element should have a width that is 90% of the...

Open the debug3-4.css file. The body element should have a width that is 90% of the width of the browser window ranging from a minimum of 600 pixels up to a maximum of 1024 pixels. Fix the syntax errors in the body style rule that defines the width of the web page.

The style rule for the body element sets up a grid layout for the page. However, there are several errors in defining the grid areas, grid columns, and grid gaps. Fix the syntax errors in the style rule.

There are issues with grid column styles globally in debug3-4.css.

body {

   font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";

}

ul {

   margin: 0;

   padding: 0;

}

li {

   list-style-type: none;

}

nav.horizontal {

   background-color:rgba(154,20,23,1.00);

   height: 30px;

}

nav.horizontal a {

   color: white;

}

nav.vertical ul {

   line-height: 2em;

}

article p {

   font-size: 1.2em;

   font-family: Baskerville, "Palatino Linotype", Palatino, "Century Schoolbook L", "Times New Roman", "serif";

}

aside ul li {

   margin: 15px 5px;

   background-color:rgba(229,129,131,1.00);

   padding: 5px;

}

a {

text-decoration: none;

   color: rgb(101, 101, 101);

}

section div h1 {

   font-size: 1em;

   text-align: center;

   background-color:rgba(154,20,23,1.00);

   color: white;

   margin: 0;

}

section div {

   padding-bottom: 20px;

}

section div p {

   font-size: 0.9em;

   text-align: center;

}

section div p:last-of-type {

   font-size: 0.65em;

   text-align: right;

   color:rgba(154,20,23,1.00);

}

aside h1 {

   text-align: center;

   font-size: 1.2em;

   font-weight: normal;

}

footer {

   text-align: center;

   color: white;

   font-size: 1em;

   height: 30px;

   line-height: 30px;

   

   background-color:rgba(154,20,23,1.00);   

}

Homework Answers

Answer #1

body {

   font-family: "Gotham", "Helvetica Neue", "Helvetica", "Arial", "sans-serif"; /* font family names must be written in ""*/

   width : 90% /*this will set the 90%width of the body element */

   min-width:600px; /* this line will set the minimum width */

   max-width: 1024px; /*this line will set maximum width*/

}

ul {

   margin: 0px;

   padding: 0px;

}

li {

   list-style-type: none;

}

nav.horizontal {

   background-color:rgba(154,20,23,1.00);

   height: 30px;

}

nav.horizontal a {

   color: white;

}

nav.vertical ul {

   line-height: 2em;

}

article p {

   font-size: 1.2em;

   font-family: Baskerville, "Palatino Linotype", Palatino, "Century Schoolbook L", "Times New Roman", "serif";

}

aside ul li {

   margin: 15px 5px;

   background-color:rgba(229,129,131,1.00);

   padding: 5px;

}

a {

text-decoration: none;

   color: rgb(101, 101, 101);

}

section div h1 {

   font-size: 1em;

   text-align: center;

   background-color:rgba(154,20,23,1.00);

   color: white;

   margin: 0;

}

section div {

   padding-bottom: 20px;

}

section div p {

   font-size: 0.9em;

   text-align: center;

}

section div p:last-of-type {

   font-size: 0.65em;

   text-align: right;

   color:rgba(154,20,23,1.00);

}

aside h1 {

   text-align: center;

   font-size: 1.2em;

   font-weight: normal;

}

footer {

   text-align: center;

   color: white;

   font-size: 1em;

   height: 30px;

   line-height: 30px;

   background-color:rgba(154,20,23,1.00);   

}

In the question above it is asked to set the width of the body element to 90% of the current window's width also that this width should not exceed the minnimum width and the maximum width which is provided as 600 pixels(px) and 1024 pixels(px)

in the whole code only body {} part will have some tweeks as follows-

body {

   font-family: "Gotham", "Helvetica Neue", "Helvetica", "Arial", "sans-serif"; <- like in this line all the font families must be inside double inverted comas ("") so that browser can search for these fonts in computer also the generic fonts like -sans,arial,serif,times. these must have the last space in your code like above because if browser coudn't find the font written first it will search for the next mentioned font family

   width : 90% /*this will set the 90%width of the body element */

to set the width of the body element relative to the window size we use % option to mention the width of that element so to say that i want 90% of the size of that window we write width: 90%

   min-width:600px; /* this line will set the minimum width */

   max-width: 1024px; /*this line will set maximum width*/

these both lines are to specify the maximum and the minimum range fo the window or element like here body

}

everything other than this is fine in this code the spaces in between the names like "section div p" means that this style will apply to all paragraphs which are inside a div which is inside a section

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
TASK 2: Open numberic-variable_problem.js file in a text editor (e.g., NotePad++). What is the syntax error...
TASK 2: Open numberic-variable_problem.js file in a text editor (e.g., NotePad++). What is the syntax error in the JavaScript file? Find error message in console in a browser’s developer tool. Fix that error and reload the web page in browser. What is the change in the content displayed in the web page after fix the syntax error in the JavaScript code? Replace the line#18 statement (el.textContent = '$' + total;) in the JavaScript code with    el.textContent = '$' + total.toFixed(3);...
nav.horizontal ul {    width: 100%;    display: grid;    grid-template-columns: repeat (5, 1fr); } nav.horizontal ul li {...
nav.horizontal ul {    width: 100%;    display: grid;    grid-template-columns: repeat (5, 1fr); } nav.horizontal ul li {    display: block;    text-align: center; } /* Coupon Section Styles */ section {    display: grid;    grid-gap:  20px;    grid-template-columns: repeat (3, 1fr); } section div {    outline: 4px dashed gray;    position: relative; } section div p.last-of-type {    position: absolute;    bottom: 1px;    right: 5px; } The style rules for the horizontal navigation list and the section element also define grid styles for those elements. Locate and fix errors...
Create a style rule for the blockquote element that sets the color property to the value...
Create a style rule for the blockquote element that sets the color property to the value hsl(30, 85%, 45%) and sets the font-size property to 1.5em. Also, create a style for the first letter of the blockquote element that sets the font-size property to 1.5em. This is what I have currently: /* New Perspectives on HTML5 and CSS3, 8th Edition Tutorial 2 Coding Challenge 1 Author: Elizabeth Iniguez Date: 10/01/2020 Filename: code2-1.css */ h1{font-size: 3.5em; line-height: 0em} h1, h2{font-family: Helvetica,...
Create a webpage with CSS Box Model: Create a basic web page using the 5 required...
Create a webpage with CSS Box Model: Create a basic web page using the 5 required html tags. Add paragraph tags and enclosed them with a div element. Using the CSS Box Model, style the div element to have a total width of 350px and a height of 250px. It should have 10px padding on all sides, a gray border of 5px on all sides, and 15px margins on both sides but none on the top and bottom. Add a...
Challenge 5 Read ALL of the instructions carefully before starting the exercise! Dear Colleague, Earlier today...
Challenge 5 Read ALL of the instructions carefully before starting the exercise! Dear Colleague, Earlier today I built my fourth website using HTML5 and CSS3. This time I wanted to try using CSS float layout options on a website dedicated to my favorite topic: robotics. I wanted my website to look like what is shown in Figure 1 (see below). However, after giving it my best effort, things once again didn’t turn out the way I wanted (see the code...
What I need to do :) Go to the code_scroll.css file and create a style rule...
What I need to do :) Go to the code_scroll.css file and create a style rule for the section element with the id container with the following styles: 1. Set the width of the element to 900 pixels and the height to 370 pixels. 2. Horizontally center the element by adding a 10 pixel top/bottom margin and set the left/right margin to auto. 3. Place the element with relative positioning, setting the top value to 30 pixels and the left...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>All Pets Veterinary Hospital</title> <style> body { font-family: arial,...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>All Pets Veterinary Hospital</title> <style> body { font-family: arial, sans-serif; font-size: 100%; } /* outer container */    #wrapper { width: 960px; margin: 50px auto; padding: 0px; background-color: rgb(255, 255, 255); /* white */ border: 1px solid #000; /* black */ }    header h1 { text-align: center; }    nav { text-align: center; background: rgb(175, 196, 206); }    address figure { text-align: center; } </style> </head> <body> <div id="wrapper"> <!-- outer...
Please linked both files. For this assignment you need to create a ToDo list using Javascript,...
Please linked both files. For this assignment you need to create a ToDo list using Javascript, along with HTML and CSS. Begin by creating a HTML page called todo.html. Then create a Javascript file called todo.js and link it in to the HTML page using a script tag. All Javascript for the assignment must be in the separate file. (For CSS, feel free to include styles in a style block at the top of the HTML page, or to link...
Section 1.1: Creating the First Table Locate the HTML comment that reads "table 1" just below...
Section 1.1: Creating the First Table Locate the HTML comment that reads "table 1" just below the opening body tag. Add a table tag with the following specifications using the style attribute and CSS: width with a value of 650 pixels a margin set to auto – this will center the table within the web page a border set to none - this removes the table border Add a table row (<tr>) Add a table data container tag (<td></td>) Within...
Hi, I'm writing a Java program that prints a grid with circles and squares that have...
Hi, I'm writing a Java program that prints a grid with circles and squares that have letters in them and it is also supposed to print the toString() function to the console window each time the application runs. This toString() function is supposed to show the tile's shape, letter, and color component (or components). Could someone please review and debug my code to help me figure out why my toString() function is not working? import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JButton;...