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

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


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

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