- From: Vadim Plessky <lucy-ples@mtu-net.ru>
- Date: Sat, 29 Dec 2001 00:24:11 +0000
- To: w3c-wai-ig@w3.org
On Friday 28 December 2001 19:40, Tina Marie Holmboe wrote: | On Fri, Dec 28, 2001 at 06:53:06PM +0000, Vadim Plessky wrote: | > | I must ask - how would you like a browser to center content | > | vertically on a continuous media type ? | > | > I apologize in advance that I do not make this example accessible to | > blind people - to my best knowledge, problem is really specific to | > Visual media. | | You are quite right there, and - might I add - it is also only specific | to visual, continuous, media types in which you use CSS to create fixed | sized blocks. However, can you explain why - since you have a fixed | box and thereby is in the 'know' of it's size - you cannot 'center' it | by inserting a | | margin-top: 210px ; | some DTP-like programs (Quark XPress, Adobe InDesign, for example) export HTML formatted exactly in this way - all blocks are absolutely positioned, with exact values for left, top, width and height. But this is definitly limits document portability. It would be much better if you could something like this for any block element: { vertical-alignment: center } I used some px values for DIV just to illustrate problem. You can have much more complex examples if you use display: inline-block (which is inline block but with possibility to define width and height) first inline-block can take same 500px in height, while second can be just 200px in height - and you want to align it vertically... | in the rule-set for #b ? Whilst your problem is clear, there are | several viable solutions. | | Do you know whether CSS 3 has including any 'easier' means of | centering block elements ? No, to my best knowledge this issue is (still) not addressed in CSS3. -- 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 Friday, 28 December 2001 16:22:31 UTC