Skip to content

Conversation

@woolfg
Copy link
Contributor

@woolfg woolfg commented May 11, 2014

from_html: Support of left, right, center, justify css text-align property

@diegocr
Copy link
Contributor

diegocr commented May 11, 2014

Thanks! Since these commits are dated two weeks ago i'll assume they're well tested, thus i'll proceed to merge & test 👍

diegocr added a commit that referenced this pull request May 11, 2014
from_html: Support of left, right, center, justify css text-align property
@diegocr diegocr merged commit 9ca4a6d into parallax:master May 11, 2014
@diegocr
Copy link
Contributor

diegocr commented May 11, 2014

There seems to be some issue with centering, at least with the changes made to the basic example, ie:

<p style="font-size:120%;text-align:center">This is <strong style="font-size:120%">another</strong> paragraph.</p>

-- Browser:

14191120486

-- PDF:

141911204539

Since in our live demo it seems to work well, i suspect it's something related to the font-size:120%

If you can fix that it'll be great, nice work in any case so a big thank you :)

@MattSich
Copy link

MattSich commented Jan 8, 2017

Having an issue right now with this.
--browser:
screen shot 2017-01-07 at 7 27 46 pm
PDF:
screen shot 2017-01-07 at 7 27 59 pm

I had to decrease the fromHtml width so you can see it because it was getting drawn beyond the right side of the page. With is set like this, you can actually see that every next line in the right justified paragraph gets moved further to the right.

I removed all inline styles except for the right alignment on the second paragraph and still getting the issue so it doesn't have to do with font size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants