- From: Johannes Koch <johannes.koch@fit.fraunhofer.de>
- Date: Fri, 03 Jul 2009 10:15:03 +0200
- To: Evaluation and Repair Tools Working Group WG <public-wai-ert@w3.org>
Johannes Koch schrieb:
> Hi group,
>
> Carlos A Velasco schrieb:
>> Hi Johannes,
>>
>> I would also add to the references the URL of the code as <code />.
>> Useful when printing:
>>
>> <dt>[label]</dt>
>> <dd><a href="referenced_document">title</a>. Authors. type of document
>> and date. <code>URL</code></dd>
>
> Something similar could by done using the content property in a print
> style sheet:
>
> <style type="text/css" media="print">
> dd a {
> text-decoration: none;
> color: #000;
> background: #fff
> }
> dd a:after {
> content: ". (<" attr(href) ">)";
> display: block
> }
> </style>
Or a bit more sophisticated (and without the stupid "display: block"):
<style type="text/css" media="print">
html {
font-family: serif;
}
dt {
font-family: sans-serif;
}
dd a {
text-decoration: none;
color: #000;
background: #fff;
font-style: italic;
}
dd a:after {
content: ". (<" attr(href) ">)";
font-style: normal;
font-family: monospace;
}
</style>
--
Johannes Koch
Fraunhofer Institute for Applied Information Technology FIT
Web Compliance Center
Schloss Birlinghoven, D-53757 Sankt Augustin, Germany
Phone: +49-2241-142628 Fax: +49-2241-142065
Received on Friday, 3 July 2009 08:25:31 UTC