Click here to get back home

table/cell contents postioning question?

 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
table/cell contents postioning question? Geoff Cox 09-03-2005
Get Chitika Premium
Posted by Geoff Cox on September 3, 2005, 10:27 am
Please log in for more thread options


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



Posted by Jim Moe on September 3, 2005, 9:19 am
Please log in for more thread options


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)

Posted by Roy Schestowitz on September 3, 2005, 5:38 pm
Please log in for more thread options


__/ [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

Posted by Geoff Cox on October 5, 2005, 3:31 pm
Please log in for more thread options


On Sat, 03 Sep 2005 17:38:25 +0100, Roy Schestowitz

>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




Similar ThreadsPosted
Fixing a Table of Contents Menu, when contents Scroll May 5, 2008, 7:40 am
April 16, 2008, 2:52 am
flip/flop contents of a frame ? February 24, 2006, 12:09 pm
Multiple-level Table of Contents April 6, 2006, 9:59 am
Force justification of inline frame contents April 6, 2005, 12:02 am
forcing ie to save the contents of the html instead of displaying it September 9, 2005, 5:47 pm
content negotiation and parsing page contents February 6, 2006, 11:43 am
vertical scrollbar showing when contents do not exceed bounds May 18, 2005, 4:55 pm
Vertical alignment of table cell contents in FireFox August 27, 2006, 5:55 am
Loss of Form field contents when the browser BACK button is pressed November 25, 2004, 4:57 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap