4 Replies Latest reply on Aug 18, 2008 4:12 AM by Kirk Sigi

    How to handle colon (:) in CSS files (IE-limitation)

    Kirk Sigi Newbie


      In my webapplication i have a lot of input-fields with an id containing a colon (:). e.g. : "myForm:name"

      I know, that i have to escape the colon in css to make it valid, but internetexplorer does not seem to handle this kind of rule correctly. See example below:

      -- test.css ---

      #a\:b {

      -- test.html --
      <link rel="stylesheet" href="test.css" type="text/css"></link>
      <input type="text" id="a:b"/>

      Firefox show this input-field 400px wide, IE not (IE is ignoring the rule completly).

      My Question: How can i make the inputfile 400px wide on FF AND IE without using the size attribute of the input-field?

      Kirksigi, AT