473,405 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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
2 1887
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Kenneth A. Holm III | last post by:
//------------------------- function photoIt($_pic, $_float = 'right', $_alt = 'Default Text') { if ( file_exists($_pic) ) { list($_w, $_h, $_t, $_a) = getimagesize($_pic); $_wide = $_w + 11...
1
by: james | last post by:
Hi there, I'm using the FOP from xml.apache.org/fop tool to convert from HTML to PDF. I'm reading the height and valign attributes of a column-cell (TD) in the XSL file:
7
by: Just Dummy | last post by:
Hi all, I am struggling with a problem for a long time. Problem statement: I have a table and the table can contain n number of rows. i.e., the table rows will be generataed out of a xml...
14
by: rsearing | last post by:
I am new to HTML and will have to beg if this is obvious, but I am trying to design a table that looks like: ******************************** *----A------*------------------------*...
4
by: estragon | last post by:
I am trying to put a transparent gif on top of a jpg, both inside a table cell. Here is the code: <table width="600" border="0" cellpadding="0" cellspacing="0" bgcolor="#121663"> <tr> ...
1
by: htmlcoder | last post by:
I have a cell in table. width is 250 px.I need to fix height such that, If the text inside the cell goes beyond 2 lines I need to display only 2 lines. If text is of single line height should be only...
1
epots9
by: epots9 | last post by:
I have a image inside of a div <div id="image"> <div id="loader"> <img id="loaderImage" src="assets/loader.gif" alt="loading..." /> </div> <div id="loaded"> <img id="picture" src="" alt=""...
2
by: laszlokenez | last post by:
Tested in IE7 and FF2. I have 2 frames, 2 similar tables in them, similar CSS. (I have 1px cellpadding, and 1px border aroud the cells. From one frame I read the offsetHeight of a cell...
7
by: msoliver | last post by:
Okay, I believe this is one of the biggest issues found using CSS/DIV layout. But, I haven't found a non-Javascript solution. I would like two DIVs - first DIV, say with a height of 20px. The...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.