6. %Placeholders: Two ".banner .slogan span" rendered. Is that ok?

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
I’m doing this https://www.codecademy.com/en/courses/learn-sass/lessons/sustainable-scss/exercises/placeholders?action=lesson_resume&link_content_target=interstitial_lesson

<In what way does your code behave incorrectly? Include ALL error messages.>
My code works as far as the exercise goes, but I’m not sure if is OK that I get two identical declarations

one: ``` .banner .slogan span { text-align: center; vertical-align: middle; width: 40%; left: 30%; } ```

and:

.banner .slogan span {
  position: absolute;
}

Looking at it from a just CSS point of view, those should been mixed in just one selector. Is that ok when working from sass?

Thanks

CSS fully supports dynamic selectors and properties. It’s the nature of the cascade and overrides. We can give new properties to a rule set in addition to overriding earlier defined properties. This is the common approach to overriding BootStrap styles, among other base style rules.

I see!

I suppose also since we should control the scss and not the css file, the css is not that important.

thanks

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.