?
Solved

hide items on print with Css page

Posted on 2010-11-12
2
Medium Priority
?
397 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 1400 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

AWS Certified Solutions Architect - Associate

This course has been developed to provide you with the requisite knowledge to not only pass the AWS CSA certification exam but also gain the hands-on experience required to become a qualified AWS Solutions architect working in a real-world environment.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
Suggested Courses

764 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