W3C home > Mailing lists > Public > www-style@w3.org > June 2003

Re: Ideas for CSS 3.0?

From: Arthur Wiebe <webmaster@awiebe.com>
Date: Wed, 04 Jun 2003 15:04:27 -0400
Message-ID: <3EDE42BB.7000506@awiebe.com>
To: Gerard Torenvliet <g_torenvliet@sympatico.ca>, www-style@w3.org
The idea for the alignment of divisions and tables is a great idea! I've 
been setting divisions and tables to the center by using margins. It 
would be much easier to be able to just type "align: center;" in the 
style sheet without have to type "margin-right: auto; margin-left: 
auto;". Much less code using the first example and would suit the 
purpose a lot better.
An Example:

In the HTML/XHTML document it would read.
<div class="align-it">
<p>Just some Text</p>

The CSS document would read.
div.align-it {
    align: center;
    text-align: left;

align: center; would align the div to the center of the parent element 
such as <body>, <div>, or <table>.
Then text-align: left; would and does align the text inside the div to 
the left.
As far as the other two ideas I can't say much.

Gerard Torenvliet wrote:

> All,
> I hope this is the right place for this request (please chide me 
> charitably if not!).
> I have been looking over the drafts for CSS 3.0, and they are missing 
> a few things that I had been hoping that I would see:
> -       the ability to achieve the same effect as the text-align 
> style, but for elements like div (i.e., to have the ability to set a 
> div to a certain size and then center that div in its parent)
> -       the ability to specify sizes in a combination of units (i.e. 
> left = 0.4em + 16px); this would allow me to more easily construct 
> relative-sized layouts
> -       the ability to specify widths and heights that span the 
> remainder of the space to the edge of the viewport; this would allow 
> me to create elements that, for instance, started at a left position 
> of 20% and stretched all the way to the right edge of the viewport.
> With CSS 2.0, I am able to achieve the first effect by nesting divs, 
> and the third by using javascript sizing. Nesting divs is acceptable 
> (but cumbersome); the more that reliance on Javascript in sizing can 
> be eliminated, the more accessible my pages will be.
> Is there a provision for these effects in CSS 3.0 that I've missed? If 
> not, what is the process for getting these ideas considered for inclusion?
> Thanks,
> -Gerard
> ===
> Gerard Torenvliet
> Lead User Interface Designer
> Watchfire Corp.
Received on Wednesday, 4 June 2003 15:04:37 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:07 UTC