Solved

hide items on print with Css page

Posted on 2010-11-12
2
395 Views
Last Modified: 2012-05-10
I am trying to get a CSS print.css page working with a dot.net 1.1 project.  I added between the header tags but when i click on print button on the exporer it still brings up same information and does not hide items on the print.css page.


<HEAD>
	
		<title>State Active Duty</title>
		<script src="../Include/Header.js"></script>
		<link rel="stylesheet" type="text/css" media="print" href="../print.css" runat="server"></link>

	</HEAD>


Css page
body

#headTbl {display:none;}
#button1 {display:none;}
#lnkMain {display:none;}

Open in new window

0
Comment
Question by:kdeutsch
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 30

Accepted Solution

by:
LZ1 earned 350 total points
ID: 34122741
2 things that may or may not have an effect:
1. You don't need the closing </link> at the end of the style sheet part.
2. You may not need the runat part either.  

Also make sure your CSS is in the right directory and that you can access it with an absolute path.
EX: http://www.yourdomain.com/css/print.css
0
 

Author Closing Comment

by:kdeutsch
ID: 34132343
Thanks
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question