I have an html report which I want to display twice on one page.
I want it at left and right respectively. It works fine in Portrait view. (I defined page size in css) . I want to display report with duplication in Landscape view. Here is my html code
body {
background: rgb(204, 204, 204);
}
page {
background: white;
display: block;
margin: 0 auto;
margin-bottom: 0.5cm;
box-shadow: 0 0 0.5cm rgba(0, 0, 0, 0.5);
}
page[size="A4"] {
width: 21cm;
height: 29.7cm;
}
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
<title>my receipt</title>
</head>
<body>
<page size="A4">
Name : Saad Last Name : Nazir AGe : 32 Class : Bsc
</body>
</html>
<html>
<!-- (to display again on one page) -->
<head>
<link rel="stylesheet" type="text/css" href="style.css" />
<title>my receipt</title>
</head>
<body>
<page size="A4">
Name : Saad Last Name : Nazir AGe : 32 Class : Bsc
</body>
</html>