---
title: "Discussion on \"Send section / DIV to print on printer instead of the whole page\" | Hashnode"
description: "Discussion on \"Send section / DIV to print on printer instead of the whole page\". I was searching for a way to print a div using JavaScript on StackOverflow - there were many results esp using jQuery using plugins. But this CSS-only way is really an elegant solution. Worthy of posting it here. Credits at the bottom.\n<!DOCTYPE html..."
url: "https://hashnode.com/posts/send-section-div-to-print-on-printer-instead-of-the-whole-page/5e7c94ca849399b44322864d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Send section / DIV to print on printer instead of the whole page](https://anjanesh.dev/send-section-div-to-print-on-printer-instead-of-the-whole-page?utm_source=hashnode&utm_medium=feed)

I was searching for a way to print a div using JavaScript on StackOverflow - there were many results esp using jQuery using plugins. But this CSS-only way is really an elegant solution. Worthy of posting it here. Credits at the bottom. <!DOCTYPE html...

Mar 26, 2020 · anjanesh.dev  
Read the article

-   [#css](https://hashnode.com/tag/css)

## Written by

[Anjanesh Lekshminarayanan](https://hashnode.com/@anjanesh)

@anjanesh · Navi Mumbai, MH

  
[View profile](https://hashnode.com/@anjanesh)

Web UI Engineer

I am a web consultant from Navi Mumbai. Mainly dealt with LAMP stack, now into Django and getting into Laravel and Cloud. Founder of nerul.in and gaali.in

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
