View Single Post
Old 10-02-2018, 04:01 PM   #5
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,085
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by Hitch View Post
As jhowell said, it's supposed to be what it sounds like--the initial, or default, coding for an element, prior to any changes via coding. It's for pretty much anything, not just alignment, AFAIK.

What's bizarre, though, @jhowell, is, isn't initial supposed to be overridable? Designed to be? Not act as the override itself? Or am I wrong about that?
In the CSS specification for text-align "initial" is defined as:
a nameless value that acts as 'left' if 'direction' is 'ltr', 'right' if 'direction' is 'rtl'

So for left-to-right text a CSS property declaration of "text-align: initial" is equivalent to "text-align: left". There is nothing in the specification about it being treated differently in terms of being overridable.

For books in KFX format (Enhanced Typesetting), Amazon allows the user to override the alignment of justified text to be left-aligned instead. That is independent of the CSS used AFAIK.

Last edited by jhowell; 10-02-2018 at 04:45 PM. Reason: typo
jhowell is online now   Reply With Quote