Skip to content

Nesting a Selector - Error #22

Description

@vipers-web-design

Simply I've tried to convert a :hover change from:
.nav-pills li a:hover {
background-color: #f546e2;
}

to:
.nav-pills {
li {
a {
&:hover {
background-color: #f546e2;
}
}
}
}

But instead, I got:
.nav-pills {
li {
a:hover {
background-color: #f546e2;
}
}
}

PS - Sorry, new to GitHub. I don't know how to style.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions