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

2 Tables, same width in tds?

Hi all

I have a table with data in it, adn the tds inside the table get their
width automatic...

but, i have above this table another table, and i want the tds inside
this table to be the same size as the tds in the below table

note that both tables in the same width, and both has same number of
tds in a tr.

I dont have the style.width property (it shows ""), so i tried to take
the width from clientWidth, but when i set style.width =
otherTable.clientWidth, the js change the value. I cant put
clientWidth = otherTable.clientWidth cuz it's read only..

Help please :)
Jul 23 '05 #1
2 1523
On 6 Nov 2004 16:36:43 -0800, in comp.lang.javascript
jo*******@hotmail.com (John Milton) wrote:
| Hi all
|
| I have a table with data in it, adn the tds inside the table get their
| width automatic...
|
| but, i have above this table another table, and i want the tds inside
| this table to be the same size as the tds in the below table
|
| note that both tables in the same width, and both has same number of
| tds in a tr.
|
| I dont have the style.width property (it shows ""), so i tried to take
| the width from clientWidth, but when i set style.width =
| otherTable.clientWidth, the js change the value. I cant put
| clientWidth = otherTable.clientWidth cuz it's read only..
|
| Help please :)


<table width="100%" .....

for each table.
-------------------------------------------------------------------
Leviticus 18:22 (KJV): "Thou shalt not lie with mankind, as with
womankind it is abomination."

Well, "duh!" Men don't often ask "Does this make me look fat?"
So, of course, we don't have to lie with men like we do with women.
-------------------------------------------------------------------
Dionisio, 17 Jan 2004
Jul 23 '05 #2
John Milton wrote:
I dont have the style.width property (it shows ""), so i tried to take


If you do not set the width, then the td will not have a width
attribute. IE may be different, it sometimes assigns a value to
properties even if you haven't.

In general, if you want them to have the same width, you must set the
width for each column in each tale to the same value.

Rob.
Jul 23 '05 #3

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

Similar topics

7
by: Phil Powell | last post by:
Code: <!-- script src="/js/val_header.js"></script --> <style> <!-- BODY { scrollbar-3d-light-color:#eeeedd; scrollbar-arrow-color:#000000; scrollbar-base-color:#000000;...
2
by: Mario T. Lanza | last post by:
Greetings, I've been working on a 3-column layout where the center column is of a fixed width (230px wide). The center column must always be 230px and the columns on the right/left (always the...
53
by: Alan Silver | last post by:
Hello, I understand the issue that tables should be used for tabular data and not for layout, but I would like some clarification as to exactly what constitutes tabular data. For example, if...
2
by: Griff | last post by:
I've a (classic) ASP web page that has several tables on it that have identical columns (headings). When these tables are displayed they of course have different widths, based upon the amount of...
4
by: steve | last post by:
Hi All I am having annoying problems with VS 2005 (VB) positioning tables on a web page If I create HTML tables for layout, sometimes the next table sits at the bottom of the above table and...
2
by: Scamjunk | last post by:
I have been desperately looking for a treeview-type solution for my problem for the past three weeks and have been greatly unsuccessful. I am totally new to the world of XSLT and I *don't know*...
32
by: Simon Dean | last post by:
Duh... Not another one... Hopefully simple though, I hate the way *I* (and it might be a CSS trait) can't intermix fixed width divisional elements with a variable auto expanding div??? The...
14
by: Zkidd | last post by:
I hired a designer to do a webpage and the code that they sent me back looks way too long. I am not a developer, but am reading up on web standards, and when I review the source code for web...
2
by: Bouzy | last post by:
I have been trying to make some very basic forms. Everything I think should work once I get it on my server, but it looks like crap. I know you are supposed to use tables for an easy way to position....
15
by: Peter | last post by:
I have the following web page and I am trying to have the Field lables NOT to wrap. It looks fine in a designer but when I run the program in a browser the lables that have a space wrap. How do I...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.