Add text-align attribute to amp-fit-text
When an amp-fit-text contains little text it centers the content, we suggest you to add an attribute to the tag to specify the text-align attribute.
see http://www.lastampa.it/2015/09/16/esteri/caos-in-ungheria-oltre-migranti-arrestati-nuovi-flussi-verso-la-croazia-per-entrare-in-ue-z9tZyDlYH8pBVa4hjXth6L/amphtml/pagina.amp.html at the bottom of the page
Thanks for the report. We will definitely remove center alignment as default. This seems wrong. I will see if we can easily enable an option to customize that via CSS.
Also, I noticed that the content inside of amp-fit-text in your article defines its own font sizes with px values. That makes it a bit less useful, since amp-fit-text itself manipulates font size to fit content in within a given box. Basically it looks like this:
<div class="amp-fit-text-content" style="font-size: 11px;">
<div class="your-content" style="font-size: 16px;"></div>
<div class="your-content2" style="font-size: 8px;"></div>
</div>
Instead, you could use % font sizes to get a relative sizing to the maximum font size given by amp-fit-text. E.g.
<div class="amp-fit-text-content" style="font-size: 11px;">
<div class="your-content" style="font-size: 100%;"></div>
<div class="your-content2" style="font-size: 60%;"></div>
</div>
And also, many styles you can apply directly on amp-fit-text. E.g. instead of
<amp-fit-text>
<div class=mycontent>This is my content</div>
</amp-fit-text>
It's possible to do this in most of cases:
<amp-fit-text class=mycontent>
This is my content
</amp-fit-text>
Pull request https://github.com/ampproject/amphtml/pull/403 address the alignment, by resetting default to normal. It's possible to customize it manually by applying CSS text-align: center.