Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text shifted, when using whitespace: nowrap or pre #229

Closed
mathiasbesser opened this issue Sep 18, 2017 · 2 comments
Closed

Text shifted, when using whitespace: nowrap or pre #229

mathiasbesser opened this issue Sep 18, 2017 · 2 comments
Labels

Comments

@mathiasbesser
Copy link

Hello,
firstable thanks for this great php library, it works pretty good with a great output.
We have problems when using the css property white-space. We have many divs inside our html, which are positioned absolute and have a predefined size. In these divs, we have one object like a span or an other div with text inside.
When we dont use the white-space property, the text is positioned as mentioned, but it breaks the line, which we want to avoid.
With the white-space property, the text wont break the line, but it is shifted to the right side. Every text is shifted with the same space.
When i attach a background-color to the text element, the background is still on the right place. But not the text.
What can we do?

This is with th white-space property nowrap.
screenshot 2017-09-18 um 12 32 42

This screenshot is without the white-space attribute.
screenshot 2017-09-18 um 12 34 00

This is with white-space: pre and a red background color on the same div element with just text inside.
screenshot 2017-09-18 um 12 37 20

@spipu
Copy link
Owner

spipu commented Jan 20, 2018

hi and thanks for the report.
i will check this.
can you provide a light html example ?

@spipu spipu added the bug label Jan 20, 2018
@spipu
Copy link
Owner

spipu commented Oct 26, 2018

can you provide a light html example ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants