W3C home > Mailing lists > Public > www-style@w3.org > October 2001

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

From: Vadim Plessky <lucy-ples@mtu-net.ru>
Date: Thu, 25 Oct 2001 01:36:13 +0000
Message-Id: <200110242130.f9OLUTH14144@post.cnt.ru>
To: Andrew McFarland <andrew.mcfarland@unite.net>
Cc: www-style@w3.org
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)

<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}
<div id="announce">Welcome to Conference! <br>
<img src="companylogo.png"></div>

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
KDE mini-Themes
Received on Wednesday, 24 October 2001 17:31:33 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:59 UTC