pell icon indicating copy to clipboard operation
pell copied to clipboard

Firefox using align instead of text-align

Open mscheker opened this issue 6 years ago • 1 comments

It seems that the align attribute is not supported in HTML5. Any reason why is this applied when aligning text within the editor. Looks like in Chrome/Safari it is applying the style attribute with a text-align value, instead. Thanks for any input.

mscheker avatar Aug 28 '18 14:08 mscheker

Yes. "align" is not supported in HTML5. Should be in a style and made "text-align". Firefox won't recognize older code if the !DOCTYPE is for html5. But it I omit the !DOCTYPE tag, Firefox treats it as older code and renders it well. Default is left aligned, so code is only needed if it's something else (centred, justified, right-aligned).

RossMWoods avatar Nov 08 '19 03:11 RossMWoods