File: nominal.image.width.html

package info (click to toggle)
docbook-xsl-doc 1.78.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,848 kB
  • sloc: makefile: 10; sh: 5
file content (36 lines) | stat: -rw-r--r-- 3,146 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>nominal.image.width</title><link rel="stylesheet" type="text/css" href="../reference.css"><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="../index.html" title="DocBook XSL Stylesheets: ReferenceDocumentation"><link rel="up" href="graphics.html" title="Graphics"><link rel="prev" href="default.image.width.html" title="default.image.width"><link rel="next" href="nominal.image.depth.html" title="nominal.image.depth"><link rel="copyright" href="copyright.html" title="License"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">nominal.image.width</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="default.image.width.html">Prev</a></td><th width="60%" align="center">Graphics</th><td width="20%" align="right"><a accesskey="n" href="nominal.image.depth.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="nominal.image.width"></a><div class="titlepage"></div>

<div class="refnamediv"><h2><span class="refentrytitle">nominal.image.width</span></h2><p>
nominal.image.width
 &#8212; The nominal image width
</p></div>

<div class="refsynopsisdiv"><h2>Synopsis</h2>
<a name="nominal.image.width.frag"></a><pre class="programlisting">
&lt;xsl:param name="nominal.image.width" select="6 * $pixels.per.inch"&gt;&lt;/xsl:param&gt;
</pre>
</div>

<div class="refsection"><a name="idp2257840"></a><h2>Description</h2>

<p>Graphic widths expressed as a percentage are problematic. In the
following discussion, we speak of width and contentwidth, but
the same issues apply to depth and contentdepth.</p>

<p>A width of 50% means "half of the available space for the image."
That's fine. But note that in HTML, this is a dynamic property and
the image size will vary if the browser window is resized.</p>

<p>A contentwidth of 50% means "half of the actual image width".
But what does that mean if the stylesheets cannot assess the image's
actual size? Treating this as a width of 50% is one possibility, but
it produces behavior (dynamic scaling) that seems entirely out of
character with the meaning.</p>

<p>Instead, the stylesheets define a
<a href="../html/nominal.image.width.html"><em class="parameter"><code>nominal.image.width</code></em></a> and convert percentages to
actual values based on that nominal size.</p>

</div>
</div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="default.image.width.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="graphics.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="nominal.image.depth.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">default.image.width</td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top">nominal.image.depth</td></tr></table></div></body></html>