f. Configure the nav a selector. Set padding to 0.2em, left margin to 0.3em, float to left, and width to 23%. g. Configure the main element selector. Set top and bottom padding to 2.5em, left and right padding to lem, margin to 0, 90% font size, and clear all floats. h. Configure the #hero img selector. Code a style declarations to set the width to 100% and the height to auto. i. Configure the h2, h3, p, and dl element selectors. Set the left and right padding to 2em. j. Configure the main ul selector. Set left margin to 2em.

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

How do I get my code to match the requirements in the picture?

* {box-sizing: border-box;}

body {background-color: #3F2860;
font-family: Verdana,Arial, sans-serif;
color:#3F2860;
margin: 0px;
padding: 0px;
}

#wrapper {background-color:#F5F5F5;
width:100%;
min-width:0px;
max-width : 1540px;
margin-left : auto;
margin-right : auto;
margin: 0px;
color:#3F2860;
padding: 0px;
}

#main {margin-left:170px;
padding-top:1em;
padding-right:2em;
Padding-left:1em;
background-color:#F5F5F5;
height: 500px;}

h2
{
margin-top:0px;
text-align: center;
}

p,h3{
        text-align: center;
    }

#nav{ float:left;
height:500px;
width:25%;
position:relative;
width:160px;
padding:1em;}

#hero {
   text-align: left;
   margin-left: 10%;
}

#ylp {
   float: center;
   background-repeat: no-repeat;
   background-position: right;
   height: 300px;
   width: 90%;
   margin-left: 1%;
}

#image {float:left;
width:30%;
position:relative;}

span{
  margin-left: 40px;
  font-size: small;
}

#des{
  float: right;
  width: 70%;
  position: relative;
}

#mathero { height: 300px;
background-image: url("yogamat.jpeg");
background-size: 100% 100%;
background-repeat: no-repeat;}

#loungehero { height: 300px;
background-image: url("yogalounge.jpeg");
background-size: 100% 100%;
background-repeat: no-repeat;}

header {background-color: #9BC1C2;
background-image: url("lilyheader.jpeg");
background-repeat: no-repeat;
background-position: right;
height: 150px;
padding-top: 1px;
}

h1 {line-height:200%;
padding-top: 1em;
padding-left: 2em;
color; white;
}

nav {font-weight: bold;
text-align:center;
Padding: 1em;
float: none;
width: auto;
padding-left: 2em;
}

nav ul {list-style-type:none;
padding-left:0;
font-size:1.2em;}

nav a {text-decoration: none ;
display: block;
text-align:center;
font-weight:bold;
border: inset 3px #CCCCCC;
padding:1em;
margin-bottom:1em;}

#yogamat { float: center;
           margin: 0 0 5px 5px;
           border: 1px solid #000000;
}

nav a:link {color:#3F2860;}

nav a:visited {color:#497777;}

nav a:hover {color:#A26100;
border:3px inset #333333;}

clear { clear:both;}

footer {background-color: #9BC1C2;
font-size: .60em;
font-style: italic;
text-align: center;
padding: 1em;}

#mobile { display: none; }
#desktop { display: inline; }

@media only screen and (max-width: 1024px) {
}

li {line-height: 90%;
padding-left: 0;
font size: 1.2em}

header, nav, main, footer { display: block; }

Floatleft {float:left;
margin-right:4em;}

### CSS Configuration Instructions

This set of instructions is intended for those familiarizing themselves with CSS for web development. The following points outline how to configure various CSS selectors and classes:

1. **Configure the `nav a` selector**: 
   - Set padding to `0.2em`.
   - Set left margin to `0.3em`.
   - Float to left.
   - Set width to `23%`.

2. **Configure the `main` element selector**:
   - Set top and bottom padding to `2.5em`.
   - Set left and right padding to `1em`.
   - Set margin to `0`.
   - Set font size to `90%`.
   - Clear all floats.

3. **Configure the `#hero img` selector**:
   - Code a style declaration to set the width to `100%`.
   - Set the height to `auto`.

4. **Configure the `h2`, `h3`, `p`, and `dl` element selectors**:
   - Set the left and right padding to `2em`.

5. **Configure the main `ul` selector**:
   - Set left margin to `2em`.

6. **Configure the `floatleft` class**:
   - Set left margin to `2em`.
   - Set bottom margin to `1em`.

7. **Configure the `clear` class**:
   - Set left padding to `2em`.

These configurations help in styling a webpage layout effectively, ensuring that design elements are consistent and responsive across various devices. Adjust these settings as necessary to fit the specific design requirements of your project.
Transcribed Image Text:### CSS Configuration Instructions This set of instructions is intended for those familiarizing themselves with CSS for web development. The following points outline how to configure various CSS selectors and classes: 1. **Configure the `nav a` selector**: - Set padding to `0.2em`. - Set left margin to `0.3em`. - Float to left. - Set width to `23%`. 2. **Configure the `main` element selector**: - Set top and bottom padding to `2.5em`. - Set left and right padding to `1em`. - Set margin to `0`. - Set font size to `90%`. - Clear all floats. 3. **Configure the `#hero img` selector**: - Code a style declaration to set the width to `100%`. - Set the height to `auto`. 4. **Configure the `h2`, `h3`, `p`, and `dl` element selectors**: - Set the left and right padding to `2em`. 5. **Configure the main `ul` selector**: - Set left margin to `2em`. 6. **Configure the `floatleft` class**: - Set left margin to `2em`. - Set bottom margin to `1em`. 7. **Configure the `clear` class**: - Set left padding to `2em`. These configurations help in styling a webpage layout effectively, ensuring that design elements are consistent and responsive across various devices. Adjust these settings as necessary to fit the specific design requirements of your project.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
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