Forum Bugs

problem with background-position using sprites?

sfmcfar
Hi,

Newbie here, evaluating Prince 7.1. I have an image sprite consisting of country flag icons. My CSS looks like this:

.f32 .flag{background:url(../images/flags32.png) no-repeat; padding-left: 40px; height: 32px; }
.f32 .cn{background-position:0 -2048px; }

HTML snippet is:
<dl class="f32">
<dt class="flag cn">Lorem ipsum</dt>
</dl>

Renders fine in the browser but when running Prince XML against it the background position offset appears to be incorrect - it looks like the offset is closer to 1536px instead of 2048px.

Any ideas?

Thanks,

Stan
mikeday
Interesting, maybe a DPI issue of some kind. Perhaps try setting "prince-background-image-resolution: normal" on this element?
sfmcfar
Sweet! Worked like a champ. Thanks a bunch.
mikeday
In Prince 8.0 the default value has been changed to "normal", for convenience. :)