Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Do you understand what a "class" is in HTML?

Yes, I do.

> Do you understand that the class "commtext" doesn't appear anywhere in the source code for HN?

It actually does, try looking at the source code again.

> The comment colors are controlled by classes like "c00" etc.

Which is unrelated to the fact that you can use commtext to set their color.

> Chrome has a tool called "DevTools" you can use that will show you. Here's the CSS for this site: https://news.ycombinator.com/news.css

Why are you looking at the CSS and not at the HTML? Look at the HTML, and you'll see that every comment is inside an HTML element (usually a span) that has a commtext class.

> Again, you don't understand it, but want to tell everyone else how easy it is...

Again, you haven't checked and just assume you are right.

We can continue the conversation about values once you've learned how to use "show source" or the inspector.

Here's the link for the source of the page of the story: view-source:https://news.ycombinator.com/item?id=28686126. Try looking up "commtext" (by using Ctrl + f).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: