Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hiding/disabling when print stylesheet is loaded #29

Closed
mvesely opened this issue Dec 29, 2010 · 3 comments
Closed

hiding/disabling when print stylesheet is loaded #29

mvesely opened this issue Dec 29, 2010 · 3 comments

Comments

@mvesely
Copy link

mvesely commented Dec 29, 2010

It would be nice to have a simple way to disable it when a print stylesheet is loaded.

@srobbin
Copy link
Member

srobbin commented Dec 29, 2010

You can probably put the following in your print stylesheet to hide backstretch.


#backstretch { display: none !important; }

@mattmcgiv
Copy link

Would be grateful to get a solution for this issue. I'm creating a print.css stylesheet but can't seem to find the CSS selector or other code needed to hide the background image when printing.

The WordPress theme I'm working with sets the backstretch image as follows:
$("body").backstretch([BackStretchImg.src],{duration:3000,fade:750});

I already tried #backstretch {display:none;} as shown above, but it doesn't work (there is no #backstretch element on the page).

@mattmcgiv
Copy link

Update: This did the trick:

.backstretch { display: none; }

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants