Netscape / IE Syntax problem or just differences?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adam Smith

    Netscape / IE Syntax problem or just differences?

    Syntax problem

    Link works w/ Netscape

    <a href="passwdhlp .html">
    <button type="button" name="Help" style="font: 11pt arial bold;
    background white;color:red ">Help!</button>
    </a>

    But not with IE

    Any corrective suggestion or workaround

    Thanks

    -- Adam --
  • Trevor Orton

    #2
    Re: Netscape / IE Syntax problem or just differences?

    > <a href="passwdhlp .html">[color=blue]
    > <button type="button" name="Help" style="font: 11pt arial bold;
    > background white;color:red ">Help!</button>
    > </a>[/color]

    I'm no expert on this but I noticed the colon is missing between
    'background' and 'white'. Also, you could try 'background-color' instead of
    'background'. I'm making the assumption that an error in the style section
    could affect functionality.

    Trevor


    Comment

    • Lauri Raittila

      #3
      Re: Netscape / IE Syntax problem or just differences?

      in comp.infosystem s.www.authoring.html, Trevor Orton wrote:[color=blue][color=green]
      > > <a href="passwdhlp .html">
      > > <button type="button" name="Help" style="font: 11pt arial bold;
      > > background white;color:red ">Help!</button>
      > > </a>[/color][/color]

      It is bad idea to make link look button, much better use plain link.
      [color=blue]
      > I'm no expert on this but I noticed the colon is missing between
      > 'background' and 'white'.[/color]

      Sure. Most likely because op didn't get it right, and didn't send URL to
      us check it.
      [color=blue]
      > Also, you could try 'background-color' instead of
      > 'background'.[/color]

      That is always bad idea. What if user has
      button { background-image: url(foobar)}

      (somewhat unlikely though. But some browsers have such option on skinning
      - not sure if it causes problems though)
      [color=blue]
      > I'm making the assumption that an error in the style section
      > could affect functionality.[/color]

      Button element is useless on practically all purposes, not only because
      IE doesn't support it.

      Better:
      If it needs to look button for some unobvious reason:

      [value="help"] {color:red;back ground:#fff;}

      <form method="get" action="passwdh lp.html"><input type="submit"
      value="help"></form>

      Even better:

      a {color:red;bord er:solid 2px;background: #fff;border-color:#fff #999 #999
      #fff;}

      <a href="passwordh lp.html">Help</a>

      Best:

      <a href="passwordh lp.html">Help</a>

      (whiout buttonlike style)

      --
      Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>

      Comment

      Working...