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 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