Skip to content

Commit 2289c2d

Browse files
committed
FIX l10n_it_edi_extension centered PDF preview
1 parent d2c7811 commit 2289c2d

File tree

1 file changed

+55
-7
lines changed

1 file changed

+55
-7
lines changed

l10n_it_edi_extension/data/FoglioStileAssoSoftware.xsl

Lines changed: 55 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2816,14 +2816,49 @@
28162816
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
28172817
<style type="text/css">
28182818

2819+
body {
2820+
margin: 0;
2821+
padding: 0;
2822+
width: 100%;
2823+
}
2824+
2825+
@media print {
2826+
body {
2827+
margin: 0;
2828+
padding: 0;
2829+
}
2830+
#fattura-container {
2831+
display: block !important;
2832+
width: 100% !important;
2833+
margin: 0 !important;
2834+
padding: 0 !important;
2835+
}
2836+
#fattura-elettronica {
2837+
display: block !important;
2838+
width: auto !important;
2839+
margin: 0 auto !important;
2840+
}
2841+
table {
2842+
margin: 0 auto !important;
2843+
}
2844+
}
2845+
2846+
#fattura-container
2847+
{
2848+
display: block;
2849+
width: 100%;
2850+
margin: 0 auto;
2851+
padding: 0;
2852+
}
2853+
28192854
#fattura-elettronica
28202855
{
28212856
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
2822-
margin-left: auto;
2823-
margin-right: auto;
2824-
max-width: 1280px;
2825-
min-width: 800px;
2826-
padding: 0; }
2857+
margin: 0 auto;
2858+
width: 850px;
2859+
padding: 0;
2860+
display: block;
2861+
}
28272862

28282863
#fattura-elettronica
28292864
div.page {
@@ -2833,8 +2868,13 @@
28332868
{
28342869
width: 800px;
28352870
border: 2px solid black;
2871+
margin: 0 auto;
28362872
}
28372873

2874+
table {
2875+
margin-left: auto;
2876+
margin-right: auto;
2877+
}
28382878

28392879
tr td {vertical-align: top;}
28402880

@@ -2898,6 +2938,7 @@
28982938
table-layout: fixed;
28992939
border-collapse: collapse;
29002940
word-wrap:normal; <!--break-word;-->
2941+
margin: 0 auto;
29012942
}
29022943
table.tbTitolo th {
29032944
padding-left: 5px;
@@ -2916,6 +2957,7 @@
29162957
table-layout: fixed;
29172958
border-collapse: collapse;
29182959
word-wrap:break-word;
2960+
margin: 0 auto;
29192961
}
29202962

29212963
table.tbFoglio th {
@@ -3051,7 +3093,7 @@
30513093
table.tbNoBorder
30523094
{
30533095
border-collapse: collapse;
3054-
margin-bottom: 5px;
3096+
margin: 0 auto 5px auto;
30553097
font-size:small;
30563098
text-align:center;
30573099
width:800px;
@@ -3060,7 +3102,10 @@
30603102
</style>
30613103
</head>
30623104
<body>
3063-
<div id="fattura-container">
3105+
<table width="100%" border="0" cellpadding="0" cellspacing="0">
3106+
<tr>
3107+
<td align="center">
3108+
<div id="fattura-container">
30643109

30653110
<xsl:choose>
30663111
<xsl:when test="d:FatturaElettronicaSemplificata">
@@ -3096,6 +3141,9 @@
30963141

30973142

30983143
</div>
3144+
</td>
3145+
</tr>
3146+
</table>
30993147
</body>
31003148
</html>
31013149
</xsl:template>

0 commit comments

Comments
 (0)