white-space: nowrap not working in dompdf

687 views
Skip to first unread message

Goran Savić

unread,
Mar 13, 2014, 4:26:35 AM3/13/14
to dom...@googlegroups.com
Hi everyone, so here's what's bugging me.

Basically it's two paragraphs in a div, that should appear in one line. They do appear in one line, but when one of the p tags has text that would go out the {.box} div, I want nowrap to stop it from wrapping. It works in html, but the generated PDF doesn't - the second p tag is pushed bellow the first p tag. Any ideas why this happens?

Here's the code i use

.box{
    width: 165px;
    overflow-hidden;
}

div{
    white-space:nowrap;
}

.one,.two{
    color: #729DD3;
    display: inline;
    font-size: 12px;
    color: #000000;
    line-height: 12px;
    width: auto;
    text-align: left;
}

<div class="box">
    <div>
        <p class="one">text one</p><p class="two">text two</p>
    </div>
</div>

BrianS

unread,
Mar 20, 2014, 11:11:41 PM3/20/14
to dom...@googlegroups.com
This would appear to potentially be an incomplete implementation of the white-space property. You might want to submit a bug report so that we take a closer look at the implementation.
Reply all
Reply to author
Forward
0 new messages