![]() |
|
|
|
#1 |
|
Hi,
I hope somebody can give me a hint: I would like to build a table with diff. call width and height but in each cell should come dynamically the same contents. So fare this is working but when cells become smaller also the text font should become smaller in proportional to the existing size of the formatted text in the cells. Michael Michael Schrading |
|
|
|
|
#2 |
|
Posts: n/a
|
On Mon, 9 Feb 2004 22:26:04 +0100, "Michael Schrading" <>
declared in alt.html: > when cells become smaller also the text font should become smaller in > proportional to the existing size of the formatted text in the cells. > Why? So that I can't read them any more? What is it that you are really trying to achieve? -- Mark Parnell http://www.clarkecomputers.com.au |
|
|
|
#3 |
|
Posts: n/a
|
You can size the table relative to the font size using em's instead of
pixels or percent (of-default) but you can't size the text dynamically except in a pdf or something similar. fonts will quickly become illegible depending on the user's settings and browser if reduced. Michael Schrading wrote: > Hi, > > I hope somebody can give me a hint: > > I would like to build a table with diff. call width and height but in each > cell should come dynamically the same contents. So fare this is working but > when cells become smaller also the text font should become smaller in > proportional to the existing size of the formatted text in the cells. > > > Michael > > > > |
|
|
|
#4 |
|
Posts: n/a
|
Hi
and thanx for your interested. > Why? So that I can't read them any more? > > What is it that you are really trying to achieve? Imagine you've got a printed page this page has got a table with 2 rows and two columns. In there is a text with a font-size of 15px everything is well reading but then the table formatted should change to 4 rows and 4 columns. Now the text will break in parts and the font-size seams to be to large so I would like to change the font-size in such kind of tables! There for... Michael |
|
|
|
#5 |
|
Posts: n/a
|
In article <NU_Vb.83$>,
"Michael Schrading" <> wrote: > > Why? So that I can't read them any more? > > > > What is it that you are really trying to achieve? > > Imagine you've got a printed page this page has got a table with 2 rows and > two columns. In there is a text with a font-size of 15px everything is well > reading but then the table formatted should change to 4 rows and 4 columns. > Now the text will break in parts and the font-size seams to be to large so I > would like to change the font-size in such kind of tables! There for... You have no final control over the user's font-size. You should make the layout flexible enough to deal with this. That said, apply a new class to the table. Have the font-size for each class predefined in your CSS stylesheet. -- Kris <> (nl) <http://www.cinnamon.nl/> |
|