Fonts in dynamical build html

  • Thread starter Michael Schrading
  • Start date
M

Michael Schrading

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
 
M

Mark Parnell

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?
 
P

Paul Furman

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

Michael Schrading

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
 
K

Kris

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...[/QUOTE]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top