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

help please!

hello,
can somebody check my old post please and tell me if i'm right so i can
change width and height of the table.
the subject was SUBJECT:style="TABLE-LAYOUT:fixed;" ???
on 05.02.2004.
thank you.
Jul 20 '05 #1
13 1659
riki wrote on 09 feb 2004 in comp.infosystems.www.authoring.stylesheets:
can somebody check my old post please and tell me if i'm right so i can
change width and height of the table.
the subject was SUBJECT:style="TABLE-LAYOUT:fixed;" ???
on 05.02.2004.


You should add a link, so that people can reread it, Riki:

<http://groups.google.com/groups?selm=bvtq8e%24buq%241%40ls219.htnet.hr>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #2
riki wrote:
hello,
can somebody check my old post please and tell me if i'm right so i
can change width and height of the table.
the subject was SUBJECT:style="TABLE-LAYOUT:fixed;" ???
on 05.02.2004.


Wot? You mean this one?
http://groups.google.com/groups?th=303c77831a6f2486

[ I do not understand your question ]

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology
Jul 20 '05 #3
sorry, didn't know about the link...
i was wondering if the width and height of the table increases when i put
cellspacing=x...
i.e. first i fix height=100 and then cellspacing=2...
what's my table height in the end if i have 5 rows???
is it 20+20+20+20+20=100px
or is it 2+20+2+20+2+20+2+20+2+20+2=112px
Jul 20 '05 #4
"riki" <ri******@hotmail.com> wrote:
sorry, didn't know about the link...
i was wondering if the width and height of the table increases when i put
cellspacing=x...
i.e. first i fix height=100 and then cellspacing=2...
what's my table height in the end if i have 5 rows???
is it 20+20+20+20+20=100px
or is it 2+20+2+20+2+20+2+20+2+20+2=112px


Neither. It's
2 + R1 + 2 + R2 + 2 + R3 + 2 + R4 + 2 + R5 + 2 = 100

Where R1 - R6 may or may not be the same depending on the content of
those cells. (Always assuming that the contents fit within the
specified height.)

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #5

"Steve Pugh" <st***@pugh.net> wrote in message
news:0t********************************@4ax.com...
"riki" <ri******@hotmail.com> wrote:
sorry, didn't know about the link...
i was wondering if the width and height of the table increases when i put
cellspacing=x...
i.e. first i fix height=100 and then cellspacing=2...
what's my table height in the end if i have 5 rows???
is it 20+20+20+20+20=100px
or is it 2+20+2+20+2+20+2+20+2+20+2=112px


Neither. It's
2 + R1 + 2 + R2 + 2 + R3 + 2 + R4 + 2 + R5 + 2 = 100

Where R1 - R6 may or may not be the same depending on the content of
those cells. (Always assuming that the contents fit within the
specified height.)

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>

Jul 20 '05 #6
but i've tried increasing cellspacing of one table while other table
remained as it were...then i noticed that first table increased height for
this cellspacing, even height of both tables were fixed to same value...
try fixing width or height of two tables, and then to first one put
cellspacing=2 and to other one cellspacing=10... you'll see that height and
width wan't be the same even dimensions are fixed to same value...
Jul 20 '05 #7
copy paste this source...you could see that 2'nd table has greater height
than 1'st and both have height="120"...
-------------------------------------------------------------------

<table width="300" height="120" cellspacing="2" bgcolor="gray">
<tr>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
</tr>
<tr>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
</tr>
<tr>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
</tr>
<tr>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
</tr>
<tr>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
</tr>
</table>

<table width="300" height="120" cellspacing="15" bgcolor="gray">
<tr>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
</tr>
<tr>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
</tr>
<tr>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
</tr>
<tr>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
</tr>
<tr>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
</tr>
</table>

Jul 20 '05 #8
"riki" <ri******@hotmail.com> wrote:
copy paste this source...you could see that 2'nd table has greater height
than 1'st and both have height="120"...
Of course it does.

If (Sum of all cellspacing) + (sum of all cell heights) <> table
height, then one of the values has to be ignored. The table height is
most likely to be ignored.
<table width="300" height="120" cellspacing="2" bgcolor="gray">
<tr>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>
6 x 2 + 5 x 40 = 212, which is not 120.
<table width="300" height="120" cellspacing="15" bgcolor="gray">
<tr>
<td width="100" height="40" bgcolor="#c0c0c0">x</td>


6 x 15 + 5 x 40 = 290, which is also not 120.

Neither of the table is being displayed at 120px high.

Try it again with no heights on the cells. The first table will now be
120px tall. The second will be taller as the content of the table
cells needs about 22px to be displayed, hence
6 x 15 + 5 x 22 = 200px.

But what has this got to do with CSS? All your styling here is being
done via HTML.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #9
"riki" <ri******@hotmail.com> wrote:
but
What are you replying to?
i've tried increasing cellspacing of one table while other table
remained as it were...then i noticed that first table increased height for
this cellspacing, even height of both tables were fixed to same value...
try fixing width or height of two tables, and then to first one put
cellspacing=2 and to other one cellspacing=10... you'll see that height and
width wan't be the same even dimensions are fixed to same value...


The height of the table can be ignored if the content needs more
height.

"CSS2 does not specify rendering when the specified table height
differs from the content height, in particular whether content height
should override specified height;"

http://www.w3.org/TR/CSS2/tables.html#height-layout

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #10
Steve Pugh <st***@pugh.net> wrote:
"riki" <ri******@hotmail.com> wrote:
<table width="300" height="120" cellspacing="2" bgcolor="gray">

But what has this got to do with CSS? All your styling here is being
done via HTML.


And non-standard HTML at that. There is no height attribute for the
table elemnt in standard HTML.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #11
yes i know that...that was just an example...all i want to know was this: if
i use style="TABLE-LAYOUT:fixed;" how should i fix table dimensions...
should i calculate TD's+cellspacing between them or just sum of all TD's???
Jul 20 '05 #12
"riki" <ri******@hotmail.com> wrote:
yes i know that...that was just an example...
Try to post useful examples in future.
all i want to know was this: if
i use style="TABLE-LAYOUT:fixed;" how should i fix table dimensions...
table-layout: fixed; only fixes the widths of columns, it does nothing
at all about the heights of rows.
should i calculate TD's+cellspacing between them or just sum of all TD's???


TDs + cellspacing (or border-spacing in CSS terms)

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #13
thank you Steve, this is what i want to know...
Jul 20 '05 #14

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

Similar topics

3
by: laurie | last post by:
Hi all, I'm trying to help out a friend who has inherited a client with a PHP shopping cart application. Neither of us know PHP, but I've been muddling my way through, trying to get these old...
1
by: the_proud_family | last post by:
HELP ME PLEASE!! my email is the_proud_family@yahoo.com I can't get the ball to go up right side and then I need it to turn around and keep turning until velocity=0 I have been at it for the ...
0
by: Kurt Watson | last post by:
I’m having a different kind of problem with Hotmail when I sign in it says, "Web Browser Software Limitations Your Current Software Will Limit Your Ability to Use Hotmail You are using a web...
12
by: Christo | last post by:
borland c++ 5.01 character constant must be one or two characters long get this when compiling my first c++ program can anyone out there help? it is highlighting this line as the problem ...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
5
by: Craig Keightley | last post by:
Please help, i have attached my page which worksin IE but i cannnot get the drop down menu to fucntion in firefox. Any one have any ideas why? Many Thanks Craig ...
17
by: JT | last post by:
Help me the following C++ question: Write a program to help a local bookshop automate its billing system. The program should do the following: (a)Let the user enter the ISBN, the system will...
7
by: tyler_durden | last post by:
thanks a lot for all your help..I'm really appreciated... with all the help I've been getting in forums I've been able to continue my program and it's almost done, but I'm having a big problem that...
23
by: Jason | last post by:
Hi, I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a table designed to tell my application...
2
by: =?Utf-8?B?U2NvdHRSYWREZXY=?= | last post by:
I'm creating a doc project for my c# program. I've done this before but this time sonething is wrong. I build my doc project and is succeeds but when I open the help file, there is no documentation...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.