Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS CSS Foundations Selectors Grouping and Modifying Selectors

Márcia Estima
Márcia Estima
6,473 Points

Why some colors in our code, like "lightblue", appear with a underline background?

When we write some colors in our text editor, like "lightblue", appear with a underline background. Why is that?

5 Answers

derekverrilli
derekverrilli
8,841 Points

Oh, that's just how Sublime Text styles the CSS syntax when it is a certain color keyword according to the theme you're using.

derekverrilli
derekverrilli
8,841 Points

Can you post an example of what you're seeing?

Márcia Estima
Márcia Estima
6,473 Points

For example: h1 + p { background-color: lightblue; color: white; padding: 5px; }

the word "lightblue" has a background coloration in the text editor (sublime tex 2),

otherwise in the code: h1 + p { background-color: #444; color: white; padding: 5px; }

the references to the color #444 and white, doesn't have this background coloration in the text editor.

The code works well, this question is only for curiosity :)

i think you are using <h1><u>Good day to you</u></h1> or <P><u>Good day to you</u></p> in you HTML elements. if you have done this then u should delete <u> elements. thanks