{"id":28928,"date":"2017-01-16T20:01:25","date_gmt":"2017-01-16T12:01:25","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=28928"},"modified":"2019-01-22T18:29:14","modified_gmt":"2019-01-22T10:29:14","slug":"gutenberg-css","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/gutenberg-css\/","title":{"rendered":"Create a Print-Friendly Page with Gutenberg.css"},"content":{"rendered":"<p>Web designers often forget about <strong>print<\/strong> because it seems much less necessary nowadays. And this may be true for digital sites like BuzzFeed.<\/p>\n<p>However, on <strong>informational websites<\/strong> it\u2019s still a good practice to offer a <strong>custom print stylesheet<\/strong>. Thankfully, you don\u2019t need to design your own because <strong><a target=\"_blank\" href=\"https:\/\/github.com\/BafS\/Gutenberg\">Gutenberg<\/a><\/strong> is here to help.<\/p>\n<p>Named after the inventor of the printing press Johannes Gutenberg, this CSS library is a standalone resource for <strong>print page designs<\/strong>.<\/p>\n<figure><a target=\"_blank\" href=\"https:\/\/github.com\/BafS\/Gutenberg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/gutenberg-css\/01-gutenberg-css-logo.jpg\" alt=\"gutenberg css\" width=\"800\" height=\"325\"><\/a><\/figure>\n<p>You just <strong>add the <code>gutenberg.css<\/code> file<\/strong> into your document head, and you\u2019re all set.<\/p>\n<p>Whenever a visitor goes to print your page it should <strong>automatically restyle<\/strong> based on the print setting. This can be set using the <code>media=\"print\"<\/code> HTML attribute.<\/p>\n<p class=\"recommended_top\">\n\t\t\t\t\t<strong>Read Also:<\/strong>\u00a0\n\t\t\t\t\t<a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/css3-page-break\/\">How to Use CSS3 Page Breaks to Organize Printed Web Pages<\/a>\n\t\t\t\t<\/p>\n<p>Check out <a target=\"_blank\" href=\"https:\/\/www.smashingmagazine.com\/2011\/11\/how-to-set-up-a-print-style-sheet\/\">this guide<\/a> if you want to learn a bit more about <strong>print stylesheets<\/strong> and how they work.<\/p>\n<p>The nice thing about Gutenberg is that it <strong>comes with extra classes and styles<\/strong> too.<\/p>\n<p>Dig into the <a target=\"_blank\" href=\"https:\/\/github.com\/BafS\/Gutenberg\/tree\/master\/dist\/themes\">themes folder<\/a> and you\u2019ll find <strong>three alternate print themes<\/strong>: <strong>book<\/strong>, <strong>modern<\/strong>, and <strong>old style<\/strong>. You can make any of these the <strong>default<\/strong> by adding them on top of the default <code>gutenberg.css<\/code> file.<\/p>\n<figure><a target=\"_blank\" href=\"https:\/\/github.com\/BafS\/Gutenberg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/gutenberg-css\/02-different-gutenberg-themes.jpg\" alt=\"gutenberg themes preview\" width=\"1000\" height=\"420\"><\/a><\/figure>\n<p>Also, you can <strong>style the page differently for print<\/strong> by adding specific CSS classes. For example the <code>.no-print<\/code> class will <strong>completely hide an element<\/strong> in the print style.<\/p>\n<p>Another example is the <strong>addition of link URLs<\/strong> next to the text. Gutenberg adds this feature to make it easier for people to find the URLs from your page. But you can add the <code>.no-reformat<\/code> class onto the anchor element to <strong>hide the URL<\/strong>.<\/p>\n<p>All this stuff is covered on the <a target=\"_blank\" href=\"https:\/\/github.com\/BafS\/Gutenberg\">GitHub repo<\/a> and it\u2019s very straightforward. You can have Gutenberg <strong>installed in less than 5 minutes<\/strong> and your whole site will be print-friendly.<\/p>\n<p>This is <strong>by far one of the simplest and coolest libraries to implement<\/strong> for better site performance. It may add a few extra KBs but the overall experience will be drastically improved.<\/p>\n<p>If the content of your site might ever be <strong>printed for any reason<\/strong> then Gutenberg.css is an indispensable resource.<\/p>\n<p class=\"recommended_top\">\n\t\t\t\t\t<strong>Read Also:<\/strong>\u00a0\n\t\t\t\t\t<a target=\"_blank\" href=\"https:\/\/www.hongkiat.com\/blog\/css-orientation-styles\/\">Optimizing UI Design: How to Apply CSS Based on Screen Orientation<\/a>\n\t\t\t\t<\/p>","protected":false},"excerpt":{"rendered":"<p>Web designers often forget about print because it seems much less necessary nowadays. And this may be true for digital sites like BuzzFeed. However, on informational websites it\u2019s still a good practice to offer a custom print stylesheet. Thankfully, you don\u2019t need to design your own because Gutenberg is here to help. Named after the&hellip;<\/p>\n","protected":false},"author":18,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[352],"tags":[507,4109],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Create a Print-Friendly Page with Gutenberg.css - Hongkiat<\/title>\n<meta name=\"description\" content=\"Web designers often forget about print because it seems much less necessary nowadays. And this may be true for digital sites like BuzzFeed. However, on\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/gutenberg-css\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create a Print-Friendly Page with Gutenberg.css\" \/>\n<meta property=\"og:description\" content=\"Web designers often forget about print because it seems much less necessary nowadays. And this may be true for digital sites like BuzzFeed. However, on\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/gutenberg-css\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-16T12:01:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-01-22T10:29:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/gutenberg-css\/01-gutenberg-css-logo.jpg\" \/>\n<meta name=\"author\" content=\"Jake Rocheleau\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jake Rocheleau\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/gutenberg-css\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/gutenberg-css\\\/\"},\"author\":{\"name\":\"Jake Rocheleau\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\"},\"headline\":\"Create a Print-Friendly Page with Gutenberg.css\",\"datePublished\":\"2017-01-16T12:01:25+00:00\",\"dateModified\":\"2019-01-22T10:29:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/gutenberg-css\\\/\"},\"wordCount\":344,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/gutenberg-css\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/gutenberg-css\\\/01-gutenberg-css-logo.jpg\",\"keywords\":[\"CSS\",\"CSS Frameworks\"],\"articleSection\":[\"Web Design\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/gutenberg-css\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/gutenberg-css\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/gutenberg-css\\\/\",\"name\":\"Create a Print-Friendly Page with Gutenberg.css - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/gutenberg-css\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/gutenberg-css\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/gutenberg-css\\\/01-gutenberg-css-logo.jpg\",\"datePublished\":\"2017-01-16T12:01:25+00:00\",\"dateModified\":\"2019-01-22T10:29:14+00:00\",\"description\":\"Web designers often forget about print because it seems much less necessary nowadays. And this may be true for digital sites like BuzzFeed. However, on\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/gutenberg-css\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/gutenberg-css\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/gutenberg-css\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/gutenberg-css\\\/01-gutenberg-css-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/gutenberg-css\\\/01-gutenberg-css-logo.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/gutenberg-css\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a Print-Friendly Page with Gutenberg.css\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/966b2daea15283b4145e71aa98a82c2a\",\"name\":\"Jake Rocheleau\",\"description\":\"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/jake\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Create a Print-Friendly Page with Gutenberg.css - Hongkiat","description":"Web designers often forget about print because it seems much less necessary nowadays. And this may be true for digital sites like BuzzFeed. However, on","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/gutenberg-css\/","og_locale":"en_US","og_type":"article","og_title":"Create a Print-Friendly Page with Gutenberg.css","og_description":"Web designers often forget about print because it seems much less necessary nowadays. And this may be true for digital sites like BuzzFeed. However, on","og_url":"https:\/\/www.hongkiat.com\/blog\/gutenberg-css\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2017-01-16T12:01:25+00:00","article_modified_time":"2019-01-22T10:29:14+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/gutenberg-css\/01-gutenberg-css-logo.jpg","type":"","width":"","height":""}],"author":"Jake Rocheleau","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Jake Rocheleau","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/gutenberg-css\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/gutenberg-css\/"},"author":{"name":"Jake Rocheleau","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a"},"headline":"Create a Print-Friendly Page with Gutenberg.css","datePublished":"2017-01-16T12:01:25+00:00","dateModified":"2019-01-22T10:29:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/gutenberg-css\/"},"wordCount":344,"commentCount":2,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/gutenberg-css\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/gutenberg-css\/01-gutenberg-css-logo.jpg","keywords":["CSS","CSS Frameworks"],"articleSection":["Web Design"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/gutenberg-css\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/gutenberg-css\/","url":"https:\/\/www.hongkiat.com\/blog\/gutenberg-css\/","name":"Create a Print-Friendly Page with Gutenberg.css - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/gutenberg-css\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/gutenberg-css\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/gutenberg-css\/01-gutenberg-css-logo.jpg","datePublished":"2017-01-16T12:01:25+00:00","dateModified":"2019-01-22T10:29:14+00:00","description":"Web designers often forget about print because it seems much less necessary nowadays. And this may be true for digital sites like BuzzFeed. However, on","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/gutenberg-css\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/gutenberg-css\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/gutenberg-css\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/gutenberg-css\/01-gutenberg-css-logo.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/gutenberg-css\/01-gutenberg-css-logo.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/gutenberg-css\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Create a Print-Friendly Page with Gutenberg.css"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/966b2daea15283b4145e71aa98a82c2a","name":"Jake Rocheleau","description":"Jake is a writer and designer with over 10 years experience working on the web. He writes about user experience design and cool resources for designers","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/jake\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-7wA","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/28928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=28928"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/28928\/revisions"}],"predecessor-version":[{"id":46855,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/28928\/revisions\/46855"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=28928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=28928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=28928"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=28928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}