Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
12093 Visninger

I want to use the power of CSS Flexbox when creating a PDF report. How to apply CSS Flexbox in QWeb? 

Avatar
Kassér

Please be specific.

Bedste svar

You need to use an older syntax because the reporting system is using QtWebKit 2.3 (it's 10 years old).

Source

.foo {
    display: -webkit-box; /* wkhtmltopdf uses this one */
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center; /* wkhtmltopdf uses this one */
    -webkit-justify-content: center;
            justify-content: center;
}

There should be a way to use the new syntax on Odoo but I can't help you, if you find a solution let me know.

Avatar
Kassér

Thanks

Related Posts Besvarelser Visninger Aktivitet
0
maj 24
1871
2
maj 24
3658
3
feb. 24
3152
2
feb. 24
2731
2
nov. 22
5978