diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-06-07 23:45:40 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-06-07 23:45:40 -0400 |
commit | f6b47b0d1c67228f13242864a50827b40abb320c (patch) | |
tree | b825d44967a245c6fc03bfacb882ed1a18769e61 /doc | |
parent | d258793c3f56dd71a5f39d87145b5c198ba8af4f (diff) |
img: Support captions.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/plugins/img.mdwn | 3 | ||||
-rw-r--r-- | doc/style.css | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/doc/plugins/img.mdwn b/doc/plugins/img.mdwn index b5eef148f..a4661f1a8 100644 --- a/doc/plugins/img.mdwn +++ b/doc/plugins/img.mdwn @@ -24,7 +24,8 @@ original image's aspect ratio is always preserved, even if this means making the image smaller than the specified size. You can also pass `alt`, `title`, `class` and `id` parameters. These are -passed through unchanged to the html img tag. +passed through unchanged to the html img tag. If you include a `caption` +parameter, the caption will be displayed centered beneath the image. The `link` parameter is used to control whether the scaled down image links to the full size version. By default it does; set "link=somepage" to link diff --git a/doc/style.css b/doc/style.css index f9a69c4f1..b98507991 100644 --- a/doc/style.css +++ b/doc/style.css @@ -53,6 +53,12 @@ div.tags { text-decoration: none; } +.img caption { + font-size: 80%; + caption-side: bottom; + text-align: center; +} + #backlinks { margin-top: 1em; } |