this is have i have so far just need help with the cars                  Part 4 - Positions

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

this is have i have so far just need help with the cars 


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Part 4 - Positions</title>
    <style>

        /*  element selector */
        .left-grassp {
         
     
            position:absolute;
            left:120px;
            top:-70px;
            width: 1100px;
            height: 109vh;
            background-color:#414046;
        }
        .right-grasspp {
         
     
         position: absolute;
         left:220px;
         top:1px;
         width: 4em;
         height: 100vh;
         background-color:#414046;
     }
        /*  class selector */
        .right-sidep {
            position: absolute;
            left: 4em;
            top: 0;
            background-color: white;
           
        }

        /*  class selector */
        .left-side {
            position: absolute;
            left:4em;
            top: 0;
            background-color: white;
            width: 4em;
            height: 100vh;
        }

        /*  class selector */
        .left-grass {
            position: absolute;
           
            top: 0;
            background-color: rgb(0, 128, 28);
            width: 4em;
            height: 100vh;
        }

        /*  class selector */
        .right-grass{
            position: absolute;
           
            left:1300px;
            top:-20px;
            background-color: green;
            width: 4em;
            height: 100vh;
        }

        /*  class selector */
        .car-left {
            background: url('./images/white-car.png');
            background: url('passbook.jpeg');
           
            background-repeat: no-repeat;
            background-size: cover;
            transform: rotate(180deg);
            position: absolute;
            margin-top: 50em;
            top: 50px;
            left: 12%;
            width: 20em;
            height: 40em;
            float: left;
        }

        /*  General sibling combinator */
        .car-right {
            position: absolute;
            background: url('./images/red-car.png'); background: url('passbook.jpeg');
            background-repeat: repeat;
            background-size: cover;
            margin-top: 5em;
            top: 80em;
            right: 12%;
            width: 20em;
            height: 40em;
            float: right;
        }

        /* General sibling combinator */
        .center {
            background-color: #EFB700;
            border-radius: 2px;
            margin: 4em auto;
            width: 2em;
            height: 10em;
        }

    </style>
</head>
<body>
    <div class="left-grass"></div>
    <div class="left-grassp">
   
    <div class="car-left"></div>
    <div class="center"></div> <div class="center"></div> <div class="center"></div>
    <div class="right-grassp"></div>
    <div class="car-right"></div>
</div>
    <div class="right-side"></div>
    <div class="right-grass"></div>
   
    </div>

   
</body>
</html>

Part 4 - Positions (positions.html)
At the end of this section, you will have a webpage that looks and functions like the webpage in
the video below (white and green lines are fixed, the white car sticks to the top of the viewport
instead of leaving the viewport on scroll):
I used a mix of sticky, relative and absolute positions to achieve the effect demonstrated above.
Your job is to replace the default selectors in sticky.html with correct selectors. You will need
to explore the HTML and prewritten style rulesto do this.
Hint:
use process of elimination
o ex: the line on the left side is green
• look in the style sheet for a rule that could create a green line on the left
side
• look in the html to see if there is an element you can match with that
rule
• finally, modify that rule's selector, refresh your browser to confirm that
the CSS rule was applied to that element
Transcribed Image Text:Part 4 - Positions (positions.html) At the end of this section, you will have a webpage that looks and functions like the webpage in the video below (white and green lines are fixed, the white car sticks to the top of the viewport instead of leaving the viewport on scroll): I used a mix of sticky, relative and absolute positions to achieve the effect demonstrated above. Your job is to replace the default selectors in sticky.html with correct selectors. You will need to explore the HTML and prewritten style rulesto do this. Hint: use process of elimination o ex: the line on the left side is green • look in the style sheet for a rule that could create a green line on the left side • look in the html to see if there is an element you can match with that rule • finally, modify that rule's selector, refresh your browser to confirm that the CSS rule was applied to that element
29393 AB 62
Transcribed Image Text:29393 AB 62
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY