Archived topic
Annotating CSS
5 replies · Started by Zad on October 9, 2018
Is there any way we can make notes about what CSS code does what, like a way to annotate it so whatever we enter doesn't get mistaken for code and doesn't ruin our site?
Thanks! Always appreciate the help from the team.
Hi there,
Are you referring to adding comments like this?
https://css-tricks.com/snippets/css/comments-in-css/
Comments kind of like "These two lines of code do this"
"Here's some code for the header"
I want to be able to put annotations like that near the code (generally above it, before the code starts).
Yep, that's exactly how you'd do it:
/* This below CSS does something cool */
.something-cool {
color: red;
}
Thanks! Exactly what I was looking for.
Awesome, glad I could help! :)