Tuesday, 25. July 2006, 16:57:35
{ white-space: nowrap } not taken when printing
Hello,It seems the
white-space: nowrap;doesn't work on print.
I tested in IE and it works over there.
I tested this on TD element like this :
<table>
<tr>
<td style="white-space: nowrap;">texte très très long bla bla bla bla oulalah</td>
<td>texte très très long bla bla bla bla oulalah</td>
<td>texte très très long bla bla bla bla oulalah</td>
<td>texte très très long bla bla bla bla oulalah</td>
<td>texte très très long bla bla bla bla oulalah</td>
<td>texte très très long bla bla bla bla oulalah</td>
<td>texte très très long bla bla bla bla oulalah</td>
</tr>
</table>
Paste this in new file and print. The first cell should be on one line (as displayed on screen) even if it makes the table to be clipped out by the limited width of the page.
But the first cell is word-wrapped as the others.
Tuesday, 25. July 2006, 17:04:46
No problem here, at least using print preview. I didn't print indeed.
Build 8542, Windows XP
Build 8542, Windows XP
Wednesday, 26. July 2006, 22:32:39
Well I have Opera 9 build 8502. It's the one that's on the main download page (not a weekly build nor a beta version). I tested under XP and 2000 with the same result:
The first column which should not word-wrap, does in print preview.
In your test, the first column staid long and made the others thiner then ? (as it should)
Here are some screenshots to illustrate.
Print preview, you can see the bug :
print_bug.png
In screen mode the first column is well displayed though :
screen_ok.png
Thank you for your hint Sérgio ... Maybe I just have to wait for Opera 9.1 ?
The first column which should not word-wrap, does in print preview.
In your test, the first column staid long and made the others thiner then ? (as it should)
Here are some screenshots to illustrate.
Print preview, you can see the bug :
print_bug.png
In screen mode the first column is well displayed though :
screen_ok.png
Thank you for your hint Sérgio ... Maybe I just have to wait for Opera 9.1 ?
Thursday, 27. July 2006, 11:01:43
Yes, it seems the bug is fixed for Opera 9.01. I already recommend you to start using the last weeklies. They are already stable enough (more than 9 final) in many users' opinions (including mine).
Friday, 28. July 2006, 09:04:28 (edited)
Wednesday, 9. August 2006, 10:13:00
I upgraded to Opera 90.1 9.01 build 8552.
The bug is still there.
For convenience I attach the test file nowrap.htm.
Press SHIFT+P to print preview.
You'll see that the 2 cells which contains the text (white-space: nowrap) are wrapped while they shouldn't wrap.
As an alternative, launch the same page inside IE or Firefox (sorry folks) and select File > Print preview. There it works.
The bug is still there.
For convenience I attach the test file nowrap.htm.
Press SHIFT+P to print preview.
You'll see that the 2 cells which contains the text (white-space: nowrap) are wrapped while they shouldn't wrap.
As an alternative, launch the same page inside IE or Firefox (sorry folks) and select File > Print preview. There it works.
Wednesday, 9. August 2006, 10:58:30
It seems a regression. I confirm the bug in 8552. The bug was not in the latest weekly in July 25th. I don't have those files to test it again.
Tuesday, 8. July 2008, 12:23:49
Originally posted by Ti:
Still bugs (2008, Opera 9.51 10081).
Try disabling the “Fit to paper width” setting in the print properties and see if that helps. Since paper usually is a lot narrower than a screen, the default setting in Opera is to enable the “Fit to…” to make the printout look reasonable (compare to what happens when you enable “Fit to width” for screen display).
Tuesday, 8. July 2008, 13:06:18
Sorry but I coulnd't find the fit to page button. If it's the same than in normal page view mode, it is not active.
Did you try the attached sample ? (nowrap.htm)
See that it works in IE (without truncating the page anyway) but not in Opera (see first column).
Hint: Just use the print preview in both browsers not to waste paper.
Did you try the attached sample ? (nowrap.htm)
See that it works in IE (without truncating the page anyway) but not in Opera (see first column).
Hint: Just use the print preview in both browsers not to waste paper.
Wednesday, 9. July 2008, 11:49:33
Thanks, if I don't print with the default configuration it's OK.
But why does such a config changes the rendering of a page that, anyway, is not wider than the page?
But why does such a config changes the rendering of a page that, anyway, is not wider than the page?
- There is no reason that Fit to width breaks the white-space:nowrap before shrinking all the other shrinkable content
- In this case, There is no reason that Fit to width changes anything because the page already fits the width by itself
Forums » Opera Community » Opera for desktop » Opera browser
