I'm creating a website and I want to add a button to print the page. I was able to do it, as it would print with ctrl+P, but the structure gets all changed and it looks bad.
<div class="header-content">
<h2 id="Feed">
<button onclick="printFunction()">Imprimir</button>
<script>function printFunction(){window.print();}</script>
</h2>
</div>
Is there other way to do print? Like if it was a print screen