Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAbner Muniz
Courses Plus Student 772 Pointsdon't understand
not sure what they're asking here?
a {
text-decoration: none;
}
#wrapper {
max-width: 940px;
margin: 0 auto;
}
#logo {
text-align: center;
margin: 0;
}
h1, h2 {
color: #fff;
}
nav a {
color: #fff;
}
nav a:hover {
color: #32673f;
}
h1 {
font-family: Changa One, sans-serif;
font-size: 1.75em;
font-weight: normal;
}
2 Answers
Robin Orellana
11,626 Pointsa child element is an element within an element(which is the parent element
<html> /* this is parent of <head> and <body> */
<head> /* this is parent of <title> and child of <html> */
<title>DOM Tutorial</title> /* this is child of <head> */
</head>
<body> /* this is parent of <h1> and <p> also it is child of <html>*/
<h1>DOM Lesson one</h1> /* this is child of <body> */
<p>Hello world!</p> /* this is child of <body> */
</body>
</html>
this explains it better https://www.w3schools.com/js/js_htmldom_navigation.asp
Robin Orellana
11,626 Pointsits asking you to make the images fill their parent elements so it is
img {
max-width: 100%;
}
that should be it. when you set a child elment to max-width 100% it fills their parent element completly
Abner Muniz
Courses Plus Student 772 Pointsthank you!
one more question:
what is parent element?
what is child element.
Abner Muniz
Courses Plus Student 772 PointsAbner Muniz
Courses Plus Student 772 Pointsit makes sense. great way explaining it. thank you!