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

On Wednesday 24 October 2001 15:34, Andrew McFarland wrote:
|   At 10:00 24/10/2001 -0400, Jesse McCarthy wrote:
|   >Using CSS how can I center the inner DIV
|   >or really the text within the inner DIV horizontally and vertically?
|
|   I'm pretty certain you can't.
|
|   What you are wanting to do is center the text vertically in the middle of
|   the screen (or window). I don't think CSS `knows' what size the screen
| (or window) is. Setting the height to 100% is 100% of the height of the
| parent element, not the screen (or window).
|
|   If you can explain where you want to use the effect we may be able to
|   suggest an alternative way of getting this to work for you.
|
|   Andrew

Ok, I want to make a screen presentation, and I have 2 minutes for this
So I write in KWrite/KDE (or Wordpad in Windows)

<html><head>
<style type="text/css">
 #announce { block-align: center center; width: auto; color: navy; font-size: 
48pt; font-name: Verdana, Arial, Helvetica, sans-serif }
 img { border: 0}
</style>
</head>
<body>
<div id="announce">Welcome to Conference! <br>
<img src="companylogo.png"></div>
</body>
</html>

and launch it in browser. Voila!
Is it *good enough" example for you?

P.S. And yes, I needed it so many times in my life (but didn't know CSS at 
that time) that even can't count. And have seen many, many possible 
*solutions* for this SIMPLE TASK, which were just ugly hacks.
-- 

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 17:31:33 UTC