Solved

hide items on print with Css page

Posted on 2010-11-12
2
396 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
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 add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…

696 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