I have a page that contains 3 buttons at the bottom with the following encoding:
function printpage() {
#options { align-content:center; align-items:center; text-align: center; }
<div id="options"> <input type="submit" value="post news" > <input id="printpagebutton" type="button" value="print news" onclick="printpage()"/> <input type="button" value="re-enter the news"> </div>
I managed to hide the print button while printing, but I could not with the others.
I searched the Internet for a solution, and answered most of the questions by adding display:none; in css, but in the end I have 3 hidden buttons on the screen. I want the buttons to be hidden when printing
The answer may be simple, my knowledge of web development makes a lot of sense.
Thanks in advance.
source share