- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How do I hide an element when printing a web page?
To hide the element, add “display:none” to the element with CSS.
<style> @media print { .noprint { visibility: hidden; } } </style>
In addition, add the element, which you want to hide inside the <div>−
<div id="noprint"> Add here the element, which you want to hide. </div>
Advertisements