Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7961945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:11:41+00:00 2026-06-04T05:11:41+00:00

What I Know Now I know how to add a print stylesheet in the

  • 0

What I Know

Now I know how to add a print stylesheet in the webpage to design the print layout. Its something like:

<link rel="text/css" href="/css/print.css" media="print" />

But I don’t want that.

In this blog go to any article or post and print preview the page (with Google Chrome). Now if you go down the page (in save PDF mode) you will see that extra text is appended which is (This story was originally published at Digital Inspiration.. ..This printer ­friendly version is made available for your personal and
non­commercial use only)
. You can see that message only if you print(-preview), not on the webpage normally.

What I Tried to find out

When I view the page source of the page then there is only two stylesheets attached out of one is main and one is for webfont. For JavaScript, there is only one main JavaScript file attached and the rest are for webfont, CSS3 MediaQueries, HTML5-Shiv and for ads which I don’t suspect to be contain any print related stuffs. When I tried find those both main CSS and JavaScript files (with CTRL–F feature), the search for printer friendly didn’t matched anything.

What I didn’t tried

I haven’t asked site owner how he did it, nor going to ask 😉

Question

How did he did that? Is here JavaScript involved? or CSS? In [noscript] tag the text inside that tag are only shown if user has javascript disabled. Is there something same for printing? Something like [onlyonprint] tag?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T05:11:42+00:00Added an answer on June 4, 2026 at 5:11 am

    He’s using the :after pseudo-element:

    #content:after {
        content: "This story was originally published at Digital Inspiration...";
        font-size: 90%;
        font-style: italic;
        line-height: 1.5em;
        margin: 3em 0;
    }
    

    This exists in his print stylesheet.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I know now that the debug assemblies have been intentionally left out of
I have one main outstanding issue, I know now how to databind to lists
Ive been tryin to solve this for a long time and now know why
From my last question , I now know how to get access to the
Introduction: Now I know this question could be very broad and it would be
Now i know to use the method of float.Parse but have bumped into a
What i know as of now that a constructor is called when an object
I do not know javascript right now but I am planning on learning it.
Language Integrated Query. Now I know that the acronyms are. I have seen C#
I'm still not practiced in oop.. now I know the importantness of it :)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.