Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does IE ignores custom css selectors?

IE is freaking me out.

my css code looks like this:

kl {
    font-size:10pt;
    font-weight: bold;
    color:#6e90a6;
}

and my html code looks like this:

<div id="testid"><kl>test</kl>

Why does IE ignore my CSS code?

like image 996
johnlikesit Avatar asked Aug 29 '26 02:08

johnlikesit


2 Answers

You're making custom tags? IE deals with custom tags differently than other browsers.

Why not use span and a class, I think IE6 might respond better, just a might.

<div id="testid"><span class="kl">test</span></div>

.kl {
    font-size:10pt;
    font-weight: bold;
    color:#6e90a6;
}
like image 104
Dorjan Avatar answered Aug 30 '26 14:08

Dorjan


I would use a css class or an id, but if YOU MUST have your custom tag, then I believe you need to define your tag in the XSL and then include that in your page in order for IE to recognize it.

like image 24
Zoidberg Avatar answered Aug 30 '26 15:08

Zoidberg



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!