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 trial

CSS CSS Selectors Advanced Selectors :not() – The Negation Pseudo-Class

input:not([type="submit"]) rendering invalid property value in chrome console?

My input:not([type="submit"]) is rendering a invalid property value in chrome?

:root {
    background: #e3ffbd;
}

:target {
    background: #384047;
    color: white;
}

#col-c:target {
    background: #eff1f2;
    color: initial;
    box-shadow: 0 0 6px rbga(0,0,0, .2);
}

input:not([type="submit"]) {
    box-shadow: inset 0 2px 0 rbga(0,0,0, .15);
}

Is this a browser issue or a code issue? If it is a browser issue how do I fix it?

ps I only have chrome and internet explorer on this computer and neither browser is rendering my css properly.

Thanks in advance!

2 Answers

Jacob Bender
Jacob Bender
15,300 Points

I was having the same issue.. we both misspelled rgba as rbga....

omg thank you! lol. I figured it might be something like that!

Jacob Bender
Jacob Bender
15,300 Points

Glad I could help :) I find that when I have an issue like this, if I google it and there is nothing similar but it should work, I most often have misspelled something. I actually spotted the error because I originally posted here saying I had the same problem, but when looking at my pasted code I spotted the issue. When you post, when you use the 3 ` marks, add the word css (or w/e language you are using) after the first set to add markup in your post. It ends up like:

:root {
    background: #e3ffbd;
}

:target {
    background: #384047;
    color: white;
}

#col-c:target {
    background: #eff1f2;
    color: initial;
    box-shadow: 0 0 6px rbga(0,0,0, .2);
}

input:not([type="submit"]) {
    box-shadow: inset 0 2px 0 rbga(0,0,0, .15);
}
Yana Mironova
Yana Mironova
6,556 Points

Ha! Had the same problem. Thanks : )