Click here to get back home

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

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Make textboxs height = the height of the cell it's in minus (n)px JC 08-06-2004
Posted by JC on August 6, 2004, 6:37 am
Please log in for more thread options
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


Posted by Mark Tranchant on August 6, 2004, 2:49 pm
Please log in for more thread options
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/


Posted by JC on August 10, 2004, 3:00 pm
Please log in for more thread options
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.


> 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.


Similar ThreadsPosted
Create a cell of height 1px August 23, 2004, 6:26 am
Rowspan and cell height January 20, 2006, 6:06 pm
What is the default height of a cell if unspecified? August 10, 2004, 11:59 pm
Table cell height & standards September 27, 2004, 10:57 am
How do I set 1 cell to a fixed height, and the other to the rest of the page? Tables, divs, etc... December 15, 2005, 7:48 pm
Adjust height base on the the height of the browser window. October 20, 2006, 4:23 pm
Is there a way to make row height equal to column width when you don't know value in advance? August 18, 2005, 1:37 pm
max height for tr? May 15, 2006, 1:48 pm
CSS design and 100% height September 16, 2004, 2:30 am
there is no attribute "HEIGHT" November 10, 2004, 6:27 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap