For example, if you want to annotate a HTML file, you use the <!-- --> tags. I tried using these tags in a CSS file but it just screws up the formatting of whatever page is using the style sheet.
Question is, how do you go about annotating a CSS file like you would a HTML file?
[code]/* Comment */ [/code]
[code]
/*
Com
ment
*/
[/code]If I remember correctly
[QUOTE=Marlamin;22010454][code]/* Comment */ [/code][code]
/*
Com
ment
*/
[/code]If I remember correctly[/QUOTE]
That should work, but last time I tried those, they do not work on lines that there is something on.
css /*comment*/ {
styles
}
Should work, I think, it might have to be at the end of the line.
Regardless of whether you can use them inline or now, it's considered bad practise to jam comments inside lines. If you want to comment it's best define a whole selector at once.
[code]/*Everything you want to say
about this selector and it's rules*/
body li .classwhatever {
lolololololol
}[/code]
Sorry, you need to Log In to post a reply to this thread.