HighDots Forums  

help please!

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss help please! in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
riki
 
Posts: n/a

Default help please! - 02-09-2004 , 03:34 AM






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.



Reply With Quote
  #2  
Old   
Evertjan.
 
Posts: n/a

Default Re: help please! - 02-09-2004 , 04:04 AM






riki wrote on 09 feb 2004 in comp.infosystems.www.authoring.stylesheets:
Quote:
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)


Reply With Quote
  #3  
Old   
Andrew Thompson
 
Posts: n/a

Default Re: help please! - 02-09-2004 , 04:06 AM



riki wrote:
Quote:
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




Reply With Quote
  #4  
Old   
riki
 
Posts: n/a

Default Re: help please! - 02-09-2004 , 04:31 AM



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



Reply With Quote
  #5  
Old   
Steve Pugh
 
Posts: n/a

Default Re: help please! - 02-09-2004 , 06:19 AM



"riki" <riki_fox (AT) hotmail (DOT) com> wrote:

Quote:
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 <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
  #6  
Old   
riki
 
Posts: n/a

Default Re: help please! - 02-09-2004 , 06:54 AM




"Steve Pugh" <steve (AT) pugh (DOT) net> wrote

Quote:
"riki" <riki_fox (AT) hotmail (DOT) 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 <steve (AT) pugh (DOT) net> <http://steve.pugh.net/



Reply With Quote
  #7  
Old   
riki
 
Posts: n/a

Default Re: help please! - 02-09-2004 , 07:01 AM



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...



Reply With Quote
  #8  
Old   
riki
 
Posts: n/a

Default Re: help please! - 02-09-2004 , 07:13 AM



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>




Reply With Quote
  #9  
Old   
Steve Pugh
 
Posts: n/a

Default Re: help please! - 02-09-2004 , 07:44 AM



"riki" <riki_fox (AT) hotmail (DOT) com> wrote:

Quote:
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.

Quote:
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.

Quote:
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 <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
  #10  
Old   
Steve Pugh
 
Posts: n/a

Default Re: help please! - 02-09-2004 , 07:46 AM



"riki" <riki_fox (AT) hotmail (DOT) com> wrote:

Quote:
but
What are you replying to?

Quote:
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 <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.