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 6789433
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:36:13+00:00 2026-05-26T17:36:13+00:00

I have a small html/css site powered by jQuery, generated with PHP, you can

  • 0

I have a small html/css site powered by jQuery, generated with PHP, you can see it in action here.

All the idea about the site is that once loaded, it works without the internet connection, if the browser supports javascript, that is.

You can see it has a PRINT button ready, but it doesn’t work yet. I want to make it work, but I’m not sure what is the best approach, or any approach, thereof.

I need to print the content area only, that means the header (song title) and the paragraph (song lyrics). Probably add a header/footer to the paper, so that the site name is printed too.

On other sites it usually works in the way that the PRINT button opens up a new window, which loads for example /print.php?id=40, but I don’t really want to do that here, as it requires an active internet connection.

In case the print feature cannot be done without an internet connection, an answer which at least describes on how to best approach this with reloading the site will still be acceptable.

  • 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-05-26T17:36:13+00:00Added an answer on May 26, 2026 at 5:36 pm

    Use a print stylesheet to specify element visibility for printing.

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

    … and in print.css

    #hideThisElementInPrint,
    .andThisOneToo {
        display: none;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have small design question about html.DropDownListFor() How can I change width of html.DropDownListFor()
I wrote a small .NET applications that removes all line breaks in aspx/html/css code
In HTML/CSS font size can be specified in the following fashion (deprecated but all
I have a small MVC site that uses the Html.ActionLink helper for a navbar.
I 've created a small photo tour using HTML, CSS and jQuery. It works
I have a small problem in html forms. When I give the following css,
I have a database full of small HTML documents and I need to programmatically
I have a .Net application that dynamically creates a small HTML page and pops
I have a small helper app that I use to inject scripts into html
I have a small, custom crafted HTML report, not using any reporting engine, for

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.