- From: Arthur Wiebe <webmaster@awiebe.com>
- Date: Wed, 04 Jun 2003 19:46:44 -0400
- To: Mikko Rantalainen <mira@st.jyu.fi>, www-html@w3.org
Is margin made for alignment? Maybe align would be confusing. I have
thought about it. Since we do have vertical-align why don't we also add
horizontal-align? It would be more typing but less confusing. Since we
do have vertical-align it would make sense to also have
horizontal-align. As far as bloating the browser I don't think
horizontal-align would do any bloating. Did vertical-align bloat some
browers?
Mikko Rantalainen wrote:
>
> Arthur Wiebe wrote:
>
>>
>> Yes there has to be a width smaller than the parent in order for it
>> to be centered. { align: center; width: 60%; } would just be better
>> than having to use margins. And also align would be easier to
>> understand.
>
>
> Well, the user agent would need to map that "align" property to
> margins anyway or it wouldn't make any sense (think "align: center"
> combined with "margin-left:0; margin-right: 90%;" What should the user
> agent do?).
>
> So basically we would create new property "align" with possible values
> of "left", "right" and "center". And all it would do, is to interpret
> those as "margin-left: 0; margin-right: auto;", "margin-left: auto;
> margin-right: 0;" and "margin-left: auto; margin-right: auto;"
> respectively. Yes, it would allow shorter style declaration /in some
> cases/ but in the same time, it would add some bloat to all user agents.
>
> I really think that page authors do need to know the difference
> between "text-align" and this proposed "align" attributes and if they
> understand that difference, then using margins for centering instead
> of this "align" property shouldn't be any problem anyway.
>
Received on Wednesday, 4 June 2003 19:46:48 UTC