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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:25:08+00:00 2026-05-13T08:25:08+00:00

I have some divs on a page that are hidden via jquery when the

  • 0

I have some divs on a page that are hidden via jquery when the page loads up. Then the user can hide and show them via button clicks.

I have a button that opens up a print preview and media=”print” stylesheet that the print preview uses.

I want all the divs to show regardless of whether they are hidden or not when the print preview page is open. I can’t for the life of me figure out how.

I thought I could just have it shown in the print CSS like…

.headerContent > * {
    visibility: visible;   
}

Where header content is the parent of the hidden divs. This doesn’t work though.

jQuery is hiding the divs via .hide() which I believe just flips the visibility property as well.

Any ideas?

  • 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-13T08:25:08+00:00Added an answer on May 13, 2026 at 8:25 am

    jQuery hide() uses display: none not visibility: hidden . You can read more on why this is so in this thread. To show the divs you can try the following css

    .headerContent > * { 
     display: block;    
    } 
    

    Or you can use jquery selector and show all divs on print button click with this code

    $(".headerContent").show();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some divs that when the page loads are populated with images of
I have some divs on my page that are made both resizable and draggable
We have some files on our website that users of our software can download.
Background I have a payment page where the user can select from a list
I have a page, with a navigationbar that loads content, from another page, into
I'm pretty a beginner with jQuery! I need to have some divs to fadeIn
I have some UI in VB 2005 that looks great in XP Style, but
We have some input data that sometimes appears with &nbsp characters on the end.
I have an area on a page that uses with overflow. In side that
If I have a HTML form with some embedded div s, and after the

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.