...

View Full Version : Style not applied in IE



comopasta
05-09-2008, 09:16 PM
Hi,

I can define the next thing in the css file:
x4 { font-weight: bold; color: #ADE1FA; }

I can use it:
<x4>Created by: </x4>

In FF and Opera that will show the text using that x4 style in bold and with the right color. However in IE no style is applied.

How to get that for IE as well?

Thanks!

_Aerospace_Eng_
05-09-2008, 09:18 PM
You can't create your own elements and expect them to work unless you are using XML and an XML stylesheet with a proper DTD but something tells me you aren't.

comopasta
05-10-2008, 10:15 AM
You can't create your own elements and expect them to work unless you are using XML and an XML stylesheet with a proper DTD but something tells me you aren't.

True, I don't use XML and DTD. The fact that 2 out of 3 (browsers) were accepting that made me think that I was close with only that.

Thanks.

FWDrew
05-10-2008, 10:38 AM
True, I don't use XML and DTD.

Why not use at least a Doctype?

Drew

Apostropartheid
05-10-2008, 11:59 AM
Indeed. The browser doesn't think you're using MadeUpMarkup Language™, but rather the more deprecated versions of HTML. Although, indeed, the early authors of the web were rather eccentric, they didn't go as far as to make up elements. Sorry. You're probably stuck with a div. Or extending the XHTML DTD.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum