Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    May 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Style not applied in IE

    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!

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New to the CF scene
    Join Date
    May 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by _Aerospace_Eng_ View Post
    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.

  • #4
    Regular Coder FWDrew's Avatar
    Join Date
    Apr 2008
    Location
    Missouri
    Posts
    380
    Thanks
    38
    Thanked 45 Times in 43 Posts
    Quote Originally Posted by comopasta View Post
    True, I don't use XML and DTD.
    Why not use at least a Doctype?

    Drew

  • #5
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •