diff --git a/addons/account/views/account_portal_templates.xml b/addons/account/views/account_portal_templates.xml
index 5bc7b3c7719..07654ee275a 100644
--- a/addons/account/views/account_portal_templates.xml
+++ b/addons/account/views/account_portal_templates.xml
@@ -122,14 +122,17 @@
-
-
-
-
-
diff --git a/addons/portal/static/src/scss/portal.scss b/addons/portal/static/src/scss/portal.scss
index 78441e9168a..1e4a584d301 100644
--- a/addons/portal/static/src/scss/portal.scss
+++ b/addons/portal/static/src/scss/portal.scss
@@ -487,11 +487,15 @@ form label {
}
}
- .o_portal_html_view {
- overflow: hidden;
+ .o_portal_page_size {
width: 100%;
max-width: 210mm; // A4 page's width
+ }
+
+ .o_portal_html_view {
+ overflow: hidden;
background: white;
+ position: relative;
.o_portal_html_loader {
@include o-position-absolute(45%, 0, auto, 0);