Re:RE: How is it possible to devise such a feeble system?

On Wednesday 24 October 2001 17:42, Jesse McCarthy wrote:
|   "Peter Foti (PeterF)" <PeterF@SystolicNetworks.com> wrote on 10/24/01
| 1:39:06
|   >
|   >If whole1 has 100% width and 100% height, then you want to center
|   >horizontally and vertically the item(s) in whole1.  You should be able
|   >to do this with the styles above.  Of course, it doesn't work.  The
|   >text-align seems to work, but the vertical-align is still top aligned.
|
|   According to the spec, vertical-align would have no bearing on this
| situation. It applies only to "inline-level and 'table-cell' elements". 
| That's my main problem here, that there is no "vertical-align" property
| that applies to this situation.  You are right, of course, that text-align
| allows for horizontal centering.

text-align is applied on inline element, incl. replaced elements (IMG, for 
example)
Handling of inline elements is described in LineText module 
|
|   >This raises a new question.  Wouldn't "text-align" be more appropriately
|   >called "horizontal-align"?  I mean, you might have non-text items within
|   >the element that you are applying the alignment to.
|   >

block-align, please. We need fix for *blocks*

[...]
|
|   You raise some good points.  I've always thought it would make more sense
| to call that property something other than text-align, and why not
| 'horizontal- align', makes sense to me, but it's not practically
| significant.  As far as the difference in possible values between the two
| properties you mentioned, there is more to vertical-align than there is to
| text-align.  There's probably a precedent for these values, e.g. in
| typography, that we're not aware of.

BTW: partial fix for this problem can be to define inheritance for inline 
(and/or inline-block?) elements.
Than you can define { line-height: 100% } and get line *100% tall*
After it, you can set padding as { padding-top: 40%; padding-bottom: 40% } 
(assuming you want line 20% tall of container block, and achieve effect very 
close to expected.   
-- 

Vadim Plessky
http://kde2.newmail.ru  (English)
33 Window Decorations and 6 Widget Styles for KDE
http://kde2.newmail.ru/kde_themes.html
KDE mini-Themes
http://kde2.newmail.ru/themes/

Received on Wednesday, 24 October 2001 18:11:06 UTC