Skip to content

Node.js documentation is not print-friendly #6743

Closed
@sorcamarian

Description

Can not print Node.js documentation from: https://nodejs.org/api/all.html .

Some CSS rules are not appropriate for print mode.
Before:
image

Fortunately, I found an simple solution(below).

At the bottom of style.css add this CSS rule:

@media print {

  html  {
    height : auto;
  }

 #column2.interior {
   display : none;
 }

 #column1.interior {
   margin-left : auto;
   overflow-y  :  auto;
 }

}

After my CSS codes:
image

Metadata

Assignees

Labels

docIssues and PRs related to the documentations.feature requestIssues that request new features to be added to Node.js.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions