that solution doesnt look right. Removing that end } you have removed the closing for the blog post class. the h1 and p are suppose to be nested inside. Removing that removes the nest
@Sujith3021 I may be missing something. I only finished sass recently, so I want to make sure I understand. How is the h1 not closed properly?
the solution
.blog-post {
h1 {
text-align: center;
color: blue;
p {
font-size: 20px;
}//closing p
}//closing h1
}//closing for blog post. if this is removed the elements are not nested and will fail test
@Sujith3021 I see what you are saying now, and that removing of the extra }. That does pass the challenge, however they need to fix the example in the lesson then.
The example. Following this the OP is right, but doesnt pass.
nav {
background-color: red;
ul {
list-style: none;
li {
display: inline-block;
}
}
}
Right. I did some testing, and found that out after a bit. The example is what through me off. With the lesson saying “use the nesting above” and the example they use looks just like what the OP has