HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 22nd, 2000, 08:19 AM
jalupomannen jalupomannen is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: stockholm
Posts: 1 jalupomannen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm trying to hide some elements when printing a HTML page. I have this "back to top" links that's ineccessary for the printed media. I know that you can do this in css but I haven't figured it out.

Reply With Quote
  #2  
Old August 23rd, 2000, 09:21 AM
pieux pieux is offline
Seņor Member
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2000
Posts: 1,156 pieux User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 17 m 59 sec
Reputation Power: 10
I could be wrong, but I don't think you can do this with just CSS. You could try trapping for the print event in JavaScript (I haven't investigated whether or not the event exists) and tell it to print a version of the page without those links. You could also have a print button on the page that prints a different version (without those links). Another option is making the links white (and the background of the page a color that would contrast well enough with the white. If the links are images, and the viewer doesn't have the browser set to print backgrounds, they won't show up.

Reply With Quote
  #3  
Old September 13th, 2000, 07:53 AM
Colte Colte is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Stockholm, Sweden
Posts: 1 Colte User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You can do this in ie. Look here for more info on this.
http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/media_1.asp

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > How to hide elements when printing?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway