Form, making Text field as wide as your <TD> ?

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

    Form, making Text field as wide as your <TD> ?

    is it possible ?

    i tried size=100% and 'NADA !'

    thanks,
    Mel


  • McKirahan

    #2
    Re: Form, making Text field as wide as your &lt;TD&gt; ?

    "Mel" <mel@redolive.c om> wrote in message
    news:bspdu4$4n1 $1@s0b1a68.ssa. gov...[color=blue]
    > is it possible ?
    >
    > i tried size=100% and 'NADA !'
    >
    > thanks,
    > Mel[/color]

    Is this what you want? Watch for word-wrap.

    <html>
    <head>
    <title>width.ht m</title>
    </head>
    <body>
    <form>
    <table border="0" cellpadding="0" cellspacing="0" width="300">
    <tr>
    <td align="center">
    <input type="text" style="width:30 0">
    </td>
    </tr>
    </table>
    </form>
    </body>
    </html>


    Not that "width=" value equals the "width:" value.

    What's 'NADA !'?


    Comment

    • Mel

      #3
      Re: Form, making Text field as wide as your &lt;TD&gt; ?

      Thanks for your help, but what happens when the table width is 100% instead
      of "300" ?
      i need my text to resize based on the table size !!!

      can you please help ?

      oh Nada is Nothing in spanish


      "McKirahan" <News@McKirahan .com> wrote in message
      news:xnXHb.1642 76$8y1.490938@a ttbi_s52...[color=blue]
      > "Mel" <mel@redolive.c om> wrote in message
      > news:bspdu4$4n1 $1@s0b1a68.ssa. gov...[color=green]
      > > is it possible ?
      > >
      > > i tried size=100% and 'NADA !'
      > >
      > > thanks,
      > > Mel[/color]
      >
      > Is this what you want? Watch for word-wrap.
      >
      > <html>
      > <head>
      > <title>width.ht m</title>
      > </head>
      > <body>
      > <form>
      > <table border="0" cellpadding="0" cellspacing="0" width="300">
      > <tr>
      > <td align="center">
      > <input type="text" style="width:30 0">
      > </td>
      > </tr>
      > </table>
      > </form>
      > </body>
      > </html>
      >
      >
      > Not that "width=" value equals the "width:" value.
      >
      > What's 'NADA !'?
      >
      >[/color]


      Comment

      • McKirahan

        #4
        Re: Form, making Text field as wide as your &lt;TD&gt; ?

        "Mel" <mel@redolive.c om> wrote in message
        news:bspgcf$5gb $1@s0b1a68.ssa. gov...[color=blue]
        > Thanks for your help, but what happens when the table width is 100%[/color]
        instead[color=blue]
        > of "300" ?
        > i need my text to resize based on the table size !!!
        >
        > can you please help ?[/color]

        Try:

        <input type="text" name="what" style="width:10 0%">



        Comment

        • Mel

          #5
          Re: Form, making Text field as wide as your &lt;TD&gt; ?

          that's exactly what i tried and what i get a a "text" that's 100px wide and
          not 100% of <TD>

          Yours, mel


          "McKirahan" <News@McKirahan .com> wrote in message
          news:iRXHb.1645 05$8y1.491487@a ttbi_s52...[color=blue]
          > "Mel" <mel@redolive.c om> wrote in message
          > news:bspgcf$5gb $1@s0b1a68.ssa. gov...[color=green]
          > > Thanks for your help, but what happens when the table width is 100%[/color]
          > instead[color=green]
          > > of "300" ?
          > > i need my text to resize based on the table size !!!
          > >
          > > can you please help ?[/color]
          >
          > Try:
          >
          > <input type="text" name="what" style="width:10 0%">
          >
          >
          >[/color]


          Comment

          • Lasse Reichstein Nielsen

            #6
            Re: Form, making Text field as wide as your &lt;TD&gt; ?

            "Mel" <mel@redolive.c om> writes:

            Please don't top post!
            [color=blue]
            > that's exactly what i tried and what i get a a "text" that's 100px wide and
            > not 100% of <TD>[/color]

            IIRC, you tried <input ... size="100%">. That is something different
            (and incorrect, the value of the size attribute should be a number,
            not a percentage).

            And it works for me. Example code:
            <table style="width:10 0%">
            <tr><td><inpu t type="text" style="width:10 0%"></td></tr>
            </table>
            So, what are you doing differently.

            /L
            --
            Lasse Reichstein Nielsen - lrn@hotpop.com
            DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleD OM.html>
            'Faith without judgement merely degrades the spirit divine.'

            Comment

            • Thomas 'PointedEars' Lahn

              #7
              Re: Form, making Text field as wide as your &lt;TD&gt; ?

              Mel wrote:
              [color=blue]
              > that's exactly what i tried and what i get a a "text" that's 100px wide and
              > not 100% of <TD>[/color]

              Are you sure? If yes, your user agent is
              borken. Re-install, update or replace it.
              [color=blue]
              > [Top post][/color]

              Please do not do that.


              PointedEars

              Comment

              Working...