By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,493 Members | 3,101 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,493 IT Pros & Developers. It's quick & easy.

TextBox Within Table Wider Than Cell

P: n/a
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?
Sep 27 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a

try setting the width to 98%

"Andrew Hayes" <An*********@discussions.microsoft.comwrote in message
news:8A**********************************@microsof t.com...
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?

Sep 27 '07 #2

P: n/a
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?

Sep 28 '07 #3

P: n/a
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" <An*********@discussions.microsoft.comwrote in message
news:B2**********************************@microsof t.com...
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?

Sep 28 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.