display:none not working on <noscript> tag in IE7 or IE8

3.4k views Asked by At

I have the following tag that functions properly in each of the "modern" browsers except IE 7 and IE8.

<style type="text/css">
    noscript.show {
        display:inline;
    }
    noscript.hide {
        display:none;
    }
</style>
<noscript class="hide">Javascript is currently disabled in your browser.</noscript>

Can IE handle this on the noscript tag? If so, how?

1

There are 1 answers

10
Mash On BEST ANSWER

Maybe IE just dont like the tag, you could try the following:

<style type="text/css">
    p.show {
        display:inline;
    }
    p.hide {
        display:none;
    }
</style>
<noscript><p class="hide">Javascript is currently disabled in your browser.</p></noscript>