467,116 Members | 1,271 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,116 developers. It's quick & easy.

Make textboxs height = the height of the cell it's in minus (n)px

JC
Greetings all.
I would like to know how to make a textboxs height = the height of the
cell it's in minus 10 px or what ever number..
Using 90% for height does not work as I need it to be exactly so many
px less than the total height and with %'s it's too dynamic from small
to large screens.

Thanks for any help!
Jeff
Jul 20 '05 #1
  • viewed: 1739
Share:
2 Replies
JC wrote:
I would like to know how to make a textboxs height = the height of the
cell it's in minus 10 px or what ever number..
Using 90% for height does not work as I need it to be exactly so many
px less than the total height and with %'s it's too dynamic from small
to large screens.


Use CSS, and set the textbox's margin to the appropriate value, and its
height to 100%. Totally untested, as I try to avoid tables for layout,
as should you.

Dynamic (fluid) layout is a good thing.

--
Mark.
http://tranchant.plus.com/
Jul 20 '05 #2
JC
Thanks Mark. I actually ended up setting a 20 px bottom-padding
value. I think margin on the textbox would have worked also, but this
way I didn't have to edit my CSS (not a big deal either).

I've always used tables for my layouts, how could you otherwise and
still have borders and such? Do you have any site examples that don't
use tables for layout?
Thanks again.
Jeff C.
Mark Tranchant <ma**@tranchant.plus.com> wrote in message news:<41*********************@ptn-nntp-reader04.plus.net>...
JC wrote:
I would like to know how to make a textboxs height = the height of the
cell it's in minus 10 px or what ever number..
Using 90% for height does not work as I need it to be exactly so many
px less than the total height and with %'s it's too dynamic from small
to large screens.


Use CSS, and set the textbox's margin to the appropriate value, and its
height to 100%. Totally untested, as I try to avoid tables for layout,
as should you.

Dynamic (fluid) layout is a good thing.

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Kenneth A. Holm III | last post: by
7 posts views Thread by Just Dummy | last post: by
1 post views Thread by htmlcoder | last post: by
7 posts views Thread by msoliver | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.