![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
"Markus Ernst" <derernst@NO#SP#AMgmx.ch> wrote: img src="lowres.jpg" ... a href="highres.jpg">High resolution version for printing</a This is only suitable if you want to print the image seperately. If I understand the OP correctly he wants to print out his page layout with the high res images included. Create a copy of the lowres html page with the highres image on it. |
#12
| |||
| |||
|
|
I would like the on-screen display to use low-res versions (96 dpi) of the images, to ensure fast loading. But I would like the printed version to use high-res versions (300 dpi or more). |
|
Can I do this using only CSS, with @media screen and @media print? |
#13
| |||
| |||
|
|
With /hackish/ HTML and CSS3: img class="withhires" src="lowres.img" longdesc="hires.img" alt="foo" @media print { img.withhires {content: attr(longdesc, uri)} } |
#14
| |||
| |||
|
|
Christoph Paeper wrote: With /hackish/ HTML and CSS3: img class="withhires" src="lowres.img" longdesc="hires.img" alt="foo" @media print { img.withhires {content: attr(longdesc, uri)}} That's not a hack any more. That's böse. |
#15
| |||
| |||
|
|
*Johannes Koch* <koch (AT) w3development (DOT) de>: Christoph Paeper wrote: With /hackish/ HTML and CSS3: img class="withhires" src="lowres.img" longdesc="hires.img" alt="foo" @media print { img.withhires {content: attr(longdesc, uri)}} That's not a hack any more. That's böse. Of course, but did I mention that hires.img is content-negotiated and only returns an image, when the Accept header didn't include 'text/html' explicitly? |
#16
| |||
| |||
|
|
Christoph Paeper wrote: did I mention that hires.img is content-negotiated and only returns an image, when the Accept header didn't include 'text/html' explicitly? AFAIK, IE doesn't mention 'text/html' in its Accept header. |
|
So they will get an image when activating the long description? |
#17
| |||
| |||
|
|
Roger Shrubber wrote: I would like the on-screen display to use low-res versions (96 dpi) of the images, to ensure fast loading. But I would like the printed version to use high-res versions (300 dpi or more). The printed page should be identical in appearance to the on-screen page, but just with more detail in the images. Can I do this using only CSS, with @media screen and @media print? I *think* so (untested). Build your page using <div>s for the images, assigning them an ID and no other attribute [1]. In the separate print and screen,projection [2] CSS files, set the <div dimensions and appropriate image as the <div> background. |
#18
| |||
| |||
|
|
Yes, blame stupid IE! Of course you could _abuse_ the 'title' or 'alt' attributes as well. |
![]() |
| Thread Tools | |
| Display Modes | |
| |