NT / XP html difference

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michele A.

    NT / XP html difference

    The following code in NT results in no border around the text box. On
    XP, the border appears. I don't want a border, but I need the value
    to post so I can't use a label. Does anyone have a solution?

    <input type="text" id="bodytype" name="bodytype" readOnly="readO nly"
    style='border-style: hidden' size="30" tabIndex="-1" value="Test Body
    Type">
  • Brian

    #2
    Re: NT / XP html difference

    Michele A. wrote:[color=blue]
    > I don't want a border, but I need the value
    > to post so I can't use a label.
    >
    > <input type="text" id="bodytype" name="bodytype" readOnly="readO nly"
    > style='border-style: hidden'[/color]

    I've never heard of border-style: hidden. You might try

    border: none;

    --
    Brian (follow directions in my address to email me)


    Comment

    • Steve Pugh

      #3
      Re: NT / XP html difference

      michele.a.king. iv1o@statefarm. com (Michele A.) wrote:
      [color=blue]
      >The following code in NT results in no border around the text box. On
      >XP, the border appears. I don't want a border, but I need the value
      >to post so I can't use a label. Does anyone have a solution?[/color]

      What about a <input type="hidden"> for the data to be submitted and
      plain text for the data to be displayed on screen. More reliable as
      the readonly attribute is not going to work 100% of the time.
      [color=blue]
      ><input type="text" id="bodytype" name="bodytype" readOnly="readO nly"
      >style='borde r-style: hidden' size="30" tabIndex="-1" value="Test Body
      >Type">[/color]

      I presume you're talking about IE as the above removes the border in
      Netscape 7.1 and Opera 7.23 but not in IE6 on WinXp.

      border-style:hidden; border-width:0; is the best bet. The first works
      in Opera, the second in IE and both of them in Gecko browsers.

      Steve

      --
      "My theories appal you, my heresies outrage you,
      I never answer letters and you don't like my tie." - The Doctor

      Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>

      Comment

      • Stephen Poley

        #4
        Re: NT / XP html difference

        On Tue, 20 Jan 2004 20:19:27 GMT, Brian
        <usenet2@juliet remblay.com.inv alid-remove-this-part> wrote:
        [color=blue]
        >Michele A. wrote:[color=green]
        >> I don't want a border, but I need the value
        >> to post so I can't use a label.
        >>
        >> <input type="text" id="bodytype" name="bodytype" readOnly="readO nly"
        >> style='border-style: hidden'[/color]
        >
        >I've never heard of border-style: hidden.[/color]

        Perhaps you could have checked the CSS spec? In this case however I
        understand it to have the same effect as 'none'.


        "8.5.3 Border style: 'border-top-style', 'border-right-style',
        'border-bottom-style', 'border-left-style', and 'border-style'

        The border style properties specify the line style of a box's border
        (solid, double, dashed, etc.). The properties defined in this section
        refer to the <border-style> value type, which make take one of the
        following:

        none
        No border. This value forces the computed value of 'border-width'
        to be '0'.
        hidden
        Same as 'none', except in terms of border conflict resolution for
        table elements.
        ....

        --
        Stephen Poley


        Comment

        • Neal

          #5
          Re: NT / XP html difference

          On 20 Jan 2004 11:45:54 -0800, Michele A.
          <michele.a.king .iv1o@statefarm .com> wrote:
          [color=blue]
          > The following code in NT results in no border around the text box. On
          > XP, the border appears.[/color]

          For this problem, it wasn't crucial, but in the future specify what
          browser and what version, not the OS. That's going to be the critical
          factor.
          [color=blue]
          > I don't want a border, but I need the value
          > to post so I can't use a label. Does anyone have a solution?
          >
          > <input type="text" id="bodytype" name="bodytype" readOnly="readO nly"
          > style='border-style: hidden' size="30" tabIndex="-1" value="Test Body
          > Type">[/color]


          style="border: 0"

          Comment

          • Neal

            #6
            Re: NT / XP html difference

            On Tue, 20 Jan 2004 20:19:27 GMT, Brian
            <usenet2@juliet remblay.com.inv alid-remove-this-part> wrote:
            [color=blue]
            > I've never heard of border-style: hidden.[/color]



            "hidden
            Same as 'none', except in terms of border conflict resolution for table
            elements."

            I'd use border: 0, as she wants nothing at all. But I suspect that's naive
            of me :\

            Comment

            • Brian

              #7
              Re: NT / XP html difference

              Neal wrote:[color=blue]
              >
              > For this problem, it wasn't crucial, but in the future specify what
              > browser and what version, not the OS. That's going to be the
              > critical factor.[/color]

              With the caveat that when specifying MSIE 5, the OS must be specified
              as well.

              --
              Brian (follow directions in my address to email me)


              Comment

              • Michele A.

                #8
                Re: NT / XP html difference

                Neal <neal413@spamrc n.com> wrote in message news:<opr130xsw idvhyks@news.rc n.com>...[color=blue]
                > On 20 Jan 2004 11:45:54 -0800, Michele A.
                > <michele.a.king .iv1o@statefarm .com> wrote:
                >[color=green]
                > > The following code in NT results in no border around the text box. On
                > > XP, the border appears.[/color]
                >
                > For this problem, it wasn't crucial, but in the future specify what
                > browser and what version, not the OS. That's going to be the critical
                > factor.
                >[color=green]
                > > I don't want a border, but I need the value
                > > to post so I can't use a label. Does anyone have a solution?
                > >
                > > <input type="text" id="bodytype" name="bodytype" readOnly="readO nly"
                > > style='border-style: hidden' size="30" tabIndex="-1" value="Test Body
                > > Type">[/color]
                >
                >
                > style="border: 0"[/color]


                I used style='border-width: 0px'. It worked. I had previously tried
                border-style: none to no avail. I found "hidden" during the huge
                amount of research I did before I came here. I found no indications
                this wouldn't work the same in IE 6.0 on NT and IE 6.0 on XP. Next
                time I will be sure to specify browser and version. Thanks to
                everyone for your help.

                Comment

                • Jeff Thies

                  #9
                  Re: NT / XP html difference

                  > > For this problem, it wasn't crucial, but in the future specify what[color=blue][color=green]
                  > > browser and what version, not the OS. That's going to be the
                  > > critical factor.[/color]
                  >
                  > With the caveat that when specifying MSIE 5, the OS must be specified
                  > as well.[/color]

                  Does this apply to the various flavors of windows OS's?

                  Jeff
                  [color=blue]
                  >
                  > --
                  > Brian (follow directions in my address to email me)
                  > http://www.tsmchughs.com/
                  >[/color]


                  Comment

                  • Brian

                    #10
                    Re: NT / XP html difference

                    Jeff Thies wrote:[color=blue][color=green][color=darkred]
                    >>> in the future specify what browser and what version, not the
                    >>> OS. That's going to be the critical factor.[/color]
                    >>
                    >> With the caveat that when specifying MSIE 5, the OS must be
                    >> specified as well.[/color]
                    >
                    > Does this apply to the various flavors of windows OS's?[/color]

                    Not nearly to the same level. Mozilla 1.3 for Win is not terribly
                    different than Mozilla 1.3 for Linux. They are both based on the same
                    rendering engine, Gecko.

                    MSIE 5 for Mac, however, was built from the ground up, using none of
                    the code form MSIE 4, and taking nothing from MSIE /win, version 5 or
                    otherwise. It is a completely different browser, with different, much
                    better, support for standards than its windows step sister.

                    In sum, if you say MSIE 6, we'll know you mean MSIE 6/Win. If you say
                    Mozilla 1.3, it won't matter much if the os is Linux or Win. But if
                    you say, "I'm having trouble getting float to work on MSIE 5," we'll
                    not know whether it's MSIE 5/Win, or MSIE 5/Mac, and the difference is
                    important. Capiche?
                    [color=blue][color=green]
                    >> -- Brian (follow directions in my address to email me)
                    >> http://www.tsmchughs.com/[/color][/color]

                    Your newsreader does not automatically trim my sig. That's too bad.
                    Consider trimming it manually next time?

                    --
                    Brian (follow directions in my address to email me)


                    Comment

                    Working...