View Single Post
Old 03-24-2010, 01:46 PM   #244
Jim Chapman
Addict
Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.Jim Chapman ought to be getting tired of karma fortunes by now.
 
Posts: 310
Karma: 2025434
Join Date: Oct 2009
Device: Lumia 950 Phone
Quote:
Originally Posted by Bald Eagle View Post
It seems to me that the Max Margin value is applied even when the style sheet defines less (except when the style sheet sets 0).
That is, when the style sheet says margin-left: 10%; margin-right: 10%; changing the Max Margin value to 20% or 30% will increase the margin.
That's right. Really, that 'Max Margin' value works as a scale factor, not a 'cap' setting the maximum margin width. The ugly details are:

1) Freda will look at the formatting info in the style sheet(s) and decide for each block of text what margin it should have above/below/left/right. Freda collapses all the complexity of different margin sizes into a margin size of none/small/medium/large.

2) To turn those 'none/small/medium/large' values into an actual on-screen margin width, use the following lookup table

Code:
            'Max Margin'
              0 10  20  30
none       0  0    0   0
small        0  3   6  10
medium   0  7  14  20
large       0 10  20 30
Those on-screen widths, BTW are measured in units of 'percent of screen width'.

Why did I make it so complicated? You may well ask! I ask the same myself.

Last edited by Jim Chapman; 03-24-2010 at 01:48 PM.
Jim Chapman is offline   Reply With Quote