TextBox Within Table Wider Than Cell

Discussion in 'ASP .Net' started by =?Utf-8?B?QW5kcmV3IEhheWVz?=, Sep 27, 2007.

  1. Does anyone else find that when they use a table to handle the layout for a
    FormView template, and they have textboxes set to width="100%", that the
    rendered input is wider than the cell they are in, even when they are empty?
    =?Utf-8?B?QW5kcmV3IEhheWVz?=, Sep 27, 2007
    #1
    1. Advertising

  2. =?Utf-8?B?QW5kcmV3IEhheWVz?=

    Just Me Guest

    try setting the width to 98%

    "Andrew Hayes" <> wrote in message
    news:...
    > Does anyone else find that when they use a table to handle the layout for
    > a
    > FormView template, and they have textboxes set to width="100%", that the
    > rendered input is wider than the cell they are in, even when they are
    > empty?
    Just Me, Sep 27, 2007
    #2
    1. Advertising

  3. Tried that, but it still makes a hell of a mess of the layout depending on
    the browser size. At high resolutions it's smaller than the cell, but on low
    resolutions it's still larger than the cell.

    The most common answer to resolve it is to use a fixed width, but what's the
    point in having relative sizing for web controls if the only way to make it
    work is by making them fixed size?

    And yes, the controls size correctly in Mozilla or FireFox, so maybe it's
    just an IE problem?
    =?Utf-8?B?QW5kcmV3IEhheWVz?=, Sep 28, 2007
    #3
  4. =?Utf-8?B?QW5kcmV3IEhheWVz?=

    Just Me Guest

    Its a bit diffucult withou the code, but yes, Explorer is different, but in
    all fairness, it is quite forgiving ususally and lets you get away with bad
    css.

    Im sure there is a way around this, post ur code and Ill take a look at it.


    "Andrew Hayes" <> wrote in message
    news:...
    > Tried that, but it still makes a hell of a mess of the layout depending on
    > the browser size. At high resolutions it's smaller than the cell, but on
    > low
    > resolutions it's still larger than the cell.
    >
    > The most common answer to resolve it is to use a fixed width, but what's
    > the
    > point in having relative sizing for web controls if the only way to make
    > it
    > work is by making them fixed size?
    >
    > And yes, the controls size correctly in Mozilla or FireFox, so maybe it's
    > just an IE problem?
    >
    Just Me, Sep 28, 2007
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. TS
    Replies:
    2
    Views:
    6,916
  2. gorbus

    DIV wider than TD (cell)

    gorbus, Jul 29, 2005, in forum: HTML
    Replies:
    8
    Views:
    3,985
    Noodles Jefferson
    Jul 30, 2005
  3. Replies:
    3
    Views:
    454
    Alan Silver
    Jun 27, 2006
  4. Nathan Sokalski

    TD tags are wider than necessary

    Nathan Sokalski, Apr 23, 2007, in forum: ASP .Net
    Replies:
    4
    Views:
    306
    Nathan Sokalski
    Apr 25, 2007
  5. OccasionalFlyer
    Replies:
    1
    Views:
    648
    Jukka K. Korpela
    Oct 20, 2011
Loading...

Share This Page