0

i know that

<!--[if !IE]>--> 
TEXT
 <!--<![endif]-->

will not display TEXT in IE. But i need this to display only in Chrome. How can i do that?

Stals
  • 1,543
  • 4
  • 27
  • 52

2 Answers2

1

Get a library like jQuery and check if the browser is Google Chrome.

The following question's answer contains a code example: Distinguish Chrome from Safari using jQuery.browser

Or you could check out this blog post, which does the same but without a framework.

Community
  • 1
  • 1
Kevin
  • 5,626
  • 3
  • 28
  • 41
0

You can do it using CSS, like answered in another question

Community
  • 1
  • 1
user123444555621
  • 148,182
  • 27
  • 114
  • 126