default values

32 views
Skip to first unread message

Knu

unread,
Jul 10, 2012, 6:31:45 PM7/10/12
to axr-...@googlegroups.com
We would like your opinion on the default values of contentAlignX/Y backed up with some arguments.
If you are too lazy to come up with reasons, then vote:  http://poll.pollcode.com/pjo2

Remember the root element (by default) won't have any padding so if you choose left/top the text would touch the border of the viewport.
Using center as a default has also design implications: for example if 2 containers have different width (one above the other), their text wouldn't be aligned.

 |    [some text ]    |
 |      [text too ]      | 

I wonder if it will look right (hopefully whitespace is preserved).
   

Francesco Rizzi

unread,
Jul 10, 2012, 9:11:09 PM7/10/12
to axr-...@googlegroups.com
My $0.0175 (2 cents, adjusted for inflation):
Left, Top

While I love to have an easy way to get center aligned content, I would be hard pressed to find a reason to deviate from this two-fold justification [pun intended?]:

"In English and most European languages where words are read left-to-right, text is often aligned ‘flush left’ [...] This is the default style of text alignment on the World Wide Web for left-to-right text"
F.

Knu

unread,
Jul 12, 2012, 3:34:44 PM7/12/12
to axr-...@googlegroups.com
You don't really have to worry about that:
@text {align: left;} is the default.
So inside the element the text will be aligned (es expected) to the left.
The problem is the left border of the different paragraphs which won't be aligned vertically if we choose "center".
Reply all
Reply to author
Forward
0 new messages