DEV Community

K M H Mubin
K M H Mubin

Posted on

1 1

How to Design Print Ready Website?

Currently, I'm trying to make a document website about my projects. When I try to print the website, it will format like the full print document.

Here is an example, from tutorialspoint website

Website version:

Alt Text

Print version:

Alt Text

I know there is some good documentation website like docusaurus. I don't want to use those.

How can I achieve that style in CSS?

Please guide me.

Thank you.😀

Top comments (2)

Collapse
 
jamesrweb profile image
James Robb • Edited

You can add @media print to the existing Stylesheet to add style information specifically for print documents. There’s also the possibility to make a different css file of print only styles and use the link tag to specify it is a print sheet.

Check out MDN and W3Schools for more on those topics.

Collapse
 
kmhmubin profile image
K M H Mubin

Thank you.

The best way to debug slow web pages cover image

The best way to debug slow web pages

Tools like Page Speed Insights and Google Lighthouse are great for providing advice for front end performance issues. But what these tools can’t do, is evaluate performance across your entire stack of distributed services and applications.

Watch video

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay