user9999 user9999 - 2 years ago 115
HTML Question

commenting internal css code is not working

I am trying to comment internal css code as shown in the below image but it's not working for me. If I comment this way, my code is still working in thesite.

Is this is the right way to put comments for internal css code?

I tried

/* */
but it didn't work for me

enter image description here

Answer Source

use /* */ not <!-- -->

The second type is HTML not CSS. The use of HTML comments is a hack having to do with some Microsoft browser and does not work as you might expect it to do.

Older answer

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download