Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add comments to inline CSS? [closed]

Tags:

html

css

I want to comment out some css style that is inline (inside some html tags). How do I do this? Do I use the /* */comments from CSS? Or <!-- --> for html?

<span class="color_dark" style="top:20px;font-size: 17px;line-height: 0px;position: relative;">onbezorgd genieten van uw<br> haard of kachel</span>

This is the part I am talking about. I wantto comment out some style properties.

like image 302
twan Avatar asked May 30 '26 18:05

twan


1 Answers

Use /* and */.

<span class="color_dark" style="top:20px; /*font-size: 17px;*/ line-height: 0px;position: relative;">onbezorgd genieten van uw<br> haard of kachel</span>

You can see that Google Chrome uses those too when disabling a style on a page.

And google your question next time first please.

like image 89
L.Butz Avatar answered Jun 02 '26 06:06

L.Butz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!