Forum How do I...?

How to remove border from a page

sscore
I want borders on both sides of my landscape pages except on the cover page. On the cover page, I only want a border on the left side. I tried doing
.cove-page {
page: cover-page auto;
}

@page cover-page {
border-right: #ffff;
}

But it didn't remove the border.

If I remove auto from the 1st line. It does remove the right border but it changes the page from landscape to portrait.
I did add

@page cover-page {
border-right: #ffff;
size: landscape;
}
But this leads to one extra blank page at the top of the cover-page.
How can I resolve this?

Edited by sscore

howcome
Could you include a simple file which shows the issue?
sscore
@howcome
On the file page with the right border, the highlighted border needs to be removed.
The second file is an example of (extra blank page)
.cover-page {
page: cover-page;
}

@page cover-page {
border-right: #fff;
size: landscape;
}
  1. Page with right side border.png39.8 kB
  2. Screenshot 2023-07-17 at 12.30.02 PM.png20.7 kB
    Extra page at top.
howcome
It's difficult to debug without having the source files. Could you post a minimized HTML source file with an embedded CSS style sheet that demonstrates the problem?

Edited by howcome