1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html><head>
3 <link rel="reference" href="before-after-display-types-001-ref.xht">
4 <title>CSS Test: generated content</title>
5 <link rel="author" title="Robert O'Callahan" href="mailto:robert@ocallahan.org">
6 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#before-after-content">
8 <meta name="flags" content="">
9 <style type="text/css">
10 div { counter-reset:ctr; quotes:"\0022" "\0022" "\0022" "\0022"}
11
12 div:before {
13 content:counter(ctr) url(support/square-outline-32x32.png) open-quote "Before " attr(class);
14 counter-increment:ctr;
15 }
16 div:after {
17 content:counter(ctr) url(support/square-outline-32x32.png) "After " attr(class) close-quote;
18 counter-increment:ctr;
19 }
20
21 .block:before, .block:after { display:block; }
22 .inline:before, .inline:after { display:inline; }
23 .inline-block:before, .inline-block:after { display:inline-block; }
24 .table:before, .table:after { display:table; }
25 .inline-table:before, .inline-table:after { display:inline-table; }
26 .table-row-group:before, .table-row-group:after { display:table-row-group; }
27 .table-row:before, .table-row:after { display:table-row; }
28 .table-cell:before, .table-cell:after { display:table-cell; }
29 .table-caption:before, .table-caption:after { display:table-caption; }
30
31 div { border:1px solid green; margin:5px; }
32 </style>
33 </head>
34
35 <body>
36 <table width="100%"><tbody><tr><td valign="top">
37 <div class="block">Inner</div>
38 <div class="inline">Inner</div>
39 <div class="inline-block">Inner</div>
40 <div class="table">Inner</div>
41 <div class="inline-table">Inner</div>
42 <div class="table-row-group">Inner</div>
43 </td><td valign="top">
44 <div class="table-row">Inner</div>
45 <div class="table-cell">Inner</div>
46 <div class="table-caption">Inner</div>
47 </td></tr></tbody></table>
48
49
50 </body></html>