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

I think not.  Let's say I have my display set to 800x600.  I have a maximized 
browser window.  Displayed in this browser window I have a document that 
validates as XHTML 1.0 strict.  Within the BODY I have two nested DIVs.  Using 
CSS the outer DIV has it's width and height set to 100%.  Inside the inner DIV 
I have the text "This is some text".  Using CSS how can I center the inner DIV 
or really the text within the inner DIV horizontally and vertically? 

Ian Firla <graves@xserver.sjc.ox.ac.uk> wrote on 10/24/01 9:33:30 AM:
>
>The problem is not with CSS or even with HTML but rather with how browsers
>interpret CSS and HTML.
>
>On Wed, 24 Oct 2001, Jesse McCarthy wrote:
>
>> Here's my question: How is it possible to devise a system -- a second
>> generation system no less -- for laying out and specifying the presentational
>> aspects of HTML documents that is so feeble that it can not even be used
>> accomplish the most elementary goal of horizontally and vertically centering 
>> a DIV containing some text within another DIV?  Well, for starters, you have 
>> to provide no way to perform vertical alignment in this context.  I mean, who
>> would ever need _that_?  You also have to make absolutely certain that you
>> render the margin / padding mechanism useless by computing percentage values
>> based on the width of the containing block.  Meanwhile, you should pronounce
>> disdainfully that authors should no longer use tables strictly for layout
>> purposes, as though you had enabled them not to, which you undoubtedly should
>> have, but inexplicably did not do.  Does this sound about right so far?  Is 
>> my ignorance or lack of understanding of CSS 2 to blame, or is this language
>> really so weak?
>>
>
>-- 
>------------
>Dr Ian Firla
>Robert Graves Trust
>St John's College, Oxford
>OX1 3JP - +44-(0)7855-310565
>http://www.robertgraves.org

Received on Wednesday, 24 October 2001 10:07:49 UTC