[Simple Reports] A4 Page Portrait

[Simple Reports] A4 Page Portrait

  
Forge Component
(18)
Published on 31 Aug by Rafael Fantato
18 votes
Published on 31 Aug by Rafael Fantato

Hi,


I just wonder where the "A4 Page Portrait" style defined.

Could enlighten me please?

Rgrds,

Setiaman

Hi Setiaman,

You can check on the style sheet of the webblock PageA4_Portrait under the Webflow Components. 

Kind regards,

Cy

Solution

Thank you, Cy.

But under the web block PageA4_Portrait you will only find the orientation for media query print.


Setiaman

All main styles are on main theme (SimpleReports).

The default property for A4 is Portrait. If you have a new class Landscape, the orientation changes for the browser too.

.Page.A4 {  
  width: 20.9cm;
  height: 29.6cm; 
  page-break-after: always;
}
.Page.A4.Landscape {  
    height: 20.9cm;
    width: 29.6cm;
}

I use with a less size than real A4 to avoid browsers problems with print styles.

Solution

Rafael Fantato wrote:

Thank you, Cy.

But under the web block PageA4_Portrait you will only find the orientation for media query print.


Setiaman

All main styles are on main theme (SimpleReports).

The default property for A4 is Portrait. If you have a new class Landscape, the orientation changes for the browser too.

.Page.A4 {  
  width: 20.9cm;
  height: 29.6cm; 
  page-break-after: always;
}
.Page.A4.Landscape {  
    height: 20.9cm;
    width: 29.6cm;
}

I use with a less size than real A4 to avoid browsers problems with print styles.

Hi Rafael,

Yes, this is correct. I forgot to include this to my answer. Thanks.


Hi Setiaman,

Rafael's answer might help your problem/inquiry.


Kind regards,

Cy


Thank you Cy and Rafael.

So the word "Portrait" is arbitrary created and the system will look for the default A4 setting.

Thank you answering my doubt.I thought there is some hidden file.


Cheers,

Setiaman Lee