Question

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 in the code that set up the grid columns.

The last paragraph within the section div selector should be placed with absolute positioning 1 pixel and 5 pixels from the bottom right corner of the container element. However, there is an error in defining the selector. Find and fix the error.

Homework Answers

Answer #1
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;

}

we should use : no .

..

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
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...
Hello! I'm getting this assignment wrong according to the cengage software. The code looks right to...
Hello! I'm getting this assignment wrong according to the cengage software. The code looks right to me but apparently it is not. May someone please take a look at it and let me know what I'm doing wrong. I just can't seem to find the error. I'm attaching the question below and below that I will attach my code. I appreciate any help you could provide. The book is: HTML5, CSS3, and JavaScript, 6th edition, Bundle Thanks QUESTION: General Flex...
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...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT