Solved

hide items on print with Css page

Posted on 2010-11-12
2
391 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
2 Comments
 
LVL 30

Accepted Solution

by:
LZ1 earned 350 total points
Comment Utility
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
Comment Utility
Thanks
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
asp.net bundle 8 33
Modify Table Width 6 13
Unable  to create new object 9 19
XML & .net 5 16
When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…
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 …

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now