473,322 Members | 1,352 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,322 software developers and data experts.

table/cell contents postioning question?

Hello,

I have a table like the one below and use JavaScrip to change the
contents of the 1st and 3rd cells in the first row.
<table>

<tr>
<td width = "20%" valign="top">varying number of words</td>
<td width = "60%" align="center" valign="top">image</td>
<td width = "20%" valign="top">varying number of words</td>
</tr>

<tr>
<td colspan="3" align="center" valign="top">a button</td>
</tr>

</table>

At the moment the position of the button moves as the number of words
changes in the cells above.

Is it possible to keep the position of the button the same relative to
the words and image above?

Cheers

Geoff
Sep 3 '05 #1
3 1356
Geoff Cox wrote:

Is it possible to keep the position of the button the same relative to
the words and image above?

Sure. Do not put the button in the table.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Sep 3 '05 #2
__/ [Geoff Cox] on Saturday 03 September 2005 11:27 \__
Hello,

I have a table like the one below and use JavaScrip to change the
contents of the 1st and 3rd cells in the first row.
<table>

<tr>
<td width = "20%" valign="top">varying number of words</td>
<td width = "60%" align="center" valign="top">image</td>
<td width = "20%" valign="top">varying number of words</td>
</tr>

<tr>
<td colspan="3" align="center" valign="top">a button</td>
</tr>

</table>

At the moment the position of the button moves as the number of words
changes in the cells above.

Is it possible to keep the position of the button the same relative to
the words and image above?

Cheers

Geoff


I suggest that you specify and force a fixed size for the 1st and 3rd cells
(be kind to small/narrow displays). The size should be large enough to
accommodate the longest string of text that is may contain. I don't see
another way at the moment.

Roy

--
Roy S. Schestowitz | $> unzip; ping; mount /usr; grep; umount& sleep
http://Schestowitz.com | SuSE Linux | PGP-Key: 74572E8E
5:35pm up 10 days 5:46, 5 users, load average: 0.16, 0.27, 0.30
Sep 3 '05 #3
On Sat, 03 Sep 2005 17:38:25 +0100, Roy Schestowitz
<ne********@schestowitz.com> wrote:
I suggest that you specify and force a fixed size for the 1st and 3rd cells
(be kind to small/narrow displays). The size should be large enough to
accommodate the longest string of text that is may contain. I don't see
another way at the moment.


Roy,

Apologies for delay in answering - that works!

Many thanks,

Geoff

Oct 5 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kai Grossjohann | last post by:
I have a table which contains a top-aligned table cell: .... <tr style="height:40"> ... <td colspan="1" rowspan="2" align="left" valign="top" style="overflow:hidden;">...
0
by: TJ Talluto | last post by:
<facts> I have a "month calendar" that always displays exactly 42 days... and alongside is a vertical box that displays the detail (form fields) of any particular select event that appears on the...
31
by: Royal Denning | last post by:
I am designing a table with 2 columns and 20 rows. I want to insert small images (each with a link) and a text title in each cell of the table. On refresh of the page, I would like to have the...
10
by: AdamG | last post by:
I am trying hard for days now to add and delete rows to a table. I could really use some help... Each row contains two buttons (images) - 'add row' and 'delete row'. When the user clicks add...
6
by: Anon | last post by:
I have a table with a cell. The cell's ID is created using a unique name that is held in m_UniqueCellName and the cell is created like so... document.write( "<TD ID="' + m_UniqueCellName +...
18
by: chimalus | last post by:
I am using a table with no column widths specified, letting the table layout manager do its thing for figuring out the column widths, and this works just fine. Now I want to make the table...
2
by: Dave Ekhaus | last post by:
hi i'm new to javascript. i'm hoping to get some help and find out if what i want to do is possible and - assuming it is, get some tips on how to accomplish the task. ok - assume i have a...
3
by: patl | last post by:
Hi all, I am trying to write a terminal emulator using Javascript + AJAX and I need to create an 80x25 table (each cell contains 1 character) in which I can update the contents of each cell...
7
by: Allie | last post by:
Here's an example of what I'm trying to do: <table> <tr style="text-align:left; font-size:10pt; font-weight:bold"> <!-- I want this word to align to the left --> ' ||CRPT|| ' <!-- I want this...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.