Hacker News new | ask | show | jobs
by greggturkington 1731 days ago
Do you understand what a "class" is in HTML? Do you understand that the class "commtext" doesn't appear anywhere in the source code for HN? The comment colors are controlled by classes like "c00" etc. 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

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

> not respecting the guidelines is fine for me

in contrast I think everyone should be able to use the web, that it should be accessible. This isn't important to you, but sometimes you have to think about other people with a limited set of abilities in a compassionate way. The GP mentions "bad design" and I mentioned an objective measure: text that can't be read by someone without writing code.

1 comments

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