473,729 Members | 2,405 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem printing website developed with CSS:Nothing prints!

9 New Member
I'm developing the external corporate website for my company in Visual Studio 2003 using html, css, and a user web control for the header/navigation.

When I try to print any of the pages only the header image (an <img> located in the Web User control) and the footer (also <img>) will print, but none of the text, graphics, background colors, or background images that are included.

My page is a liquid 3 column + 1 header + 1 footer CSS design which I suspect is the culprit. Are there any tricks for printing out in CSS? Has anyone had this problem before?

I will post some of my code here but unfortunately I cannot post a URL because at this point it is internal only.

Thanks for any help!

note: i've very quickly and roughly edited out my company name and a bunch of content to make it smaller. There may be errors.
Expand|Select|Wrap|Line Numbers
  1. <%@ REGISTER Src="Controls/Header.ascx" TagPrefix="x" Tagname="Header"%>
  2. <%@ Page Language="vb" AutoEventWireup="false" Codebehind="ServicesIT.aspx.vb" Inherits="x14.ServicesIT"%>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  4. <HTML>
  5.     <HEAD id="Head1">
  6.         <title>x Information Technology Services</title>
  7.         <link href="http://localhost/x/Images/icon/icon_x.ico" rel="icon">
  8.         <link href="http://localhost/x/Images/icon/icon_x.ico" type="image/x-icon" rel="shortcut icon">
  9.         <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
  10.         <meta content="JavaScript" name="vs_defaultClientScript">
  11.         <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
  12.         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  13.         <LINK href="Styles/x.css" type="text/css" rel="stylesheet">
  14.         <LINK href="Styles/Menus.css" type="text/css" rel="stylesheet">
  15.         <style type="text/css">#selected {
  16.     BACKGROUND-IMAGE: url(Images/navMenu/navServices-sel.jpg)
  17. }
  18.  
  19. #leftborderpattern {
  20.     Z-INDEX: 500; TOP: 241px
  21. }
  22. #submenu {
  23.     HEIGHT: 241px
  24. }
  25.         </style>
  26.     </HEAD>
  27.     <body>
  28.         <a name="top"></a>
  29.         <div style="POSITION: absolute; TOP: 300px; z-score: 900"></div>
  30.         <div><x:HEADER id="Header1" runat="server"></x:HEADER>
  31.             <div class="navMenu Services" id="divServices"><A class="menu" id="selected" href="Services.aspx"></A></div>
  32.         </div>
  33.         <div class="fullheightcontainer" id="container">
  34.             <div class="wrapper" id="wrapper">
  35.                 <div class="mainbody serviceswide" id="mainbody">
  36.                     <div class="maintitle" id="maintitle">Services</div>
  37.                     <div class="HorizontalImage ServicesLONG" id="HorizontalImage"><IMG src="Images/misc/img_Services_Horizontal.jpg"></div>
  38.                     <br>
  39.                     <div style="MARGIN-LEFT: 20px">
  40.                         <div class="capabilities" id = "capabilities"><span class="Subtitle1" style="font-size:14px">&nbsp;&nbsp;x Systems' Information Technology Capabilities Include:</span>
  41.                         <ul style="margin-top:0; margin-bottom:0; line-height:15px">
  42.                         <li>IT Portfolio Management</li>
  43.                         <li>Enterprise architecture</li>
  44.  
  45.                         </ul><br style="line-height:8px">
  46.                         </div>
  47.                         <br style="line-height:5px">
  48.                         <table style="height:25px;width:559px; cell-padding:0;cell-spacing:0 "><tr style="height:25px;width:559px; cell-padding:0;cell-spacing:0 "><td style="width:272px;text-align:right"><A  href="#success1"><img style="border-style: none; " src="images/misc/img_services_ss1.jpg"></A></td><td style="text-align:right"><A href="#success2"><img style="TEXT-ALIGN: right; border-style:none; " src="images/misc/img_services_ss2.jpg"></A></td></tr></table>
  49.                         &nbsp;
  50.                         <br>
  51.  
  52.                         <span class="subtitle">Information Technology (IT)</span><br>
  53.  
  54.                         <span class="text">x  We have been externally appraised 
  55.                             at CMMI Level 2, which assures our customers that our risk management, quality 
  56.                             assurance, project management (based on PMBOK) and software development 
  57.                             methodologies meet the highest process standards.<br>
  58.                             <br>
  59.                             IT projects can fail for non-technical reasons. x leverages its expertise 
  60.                             in organizational change to ensure that IT services are properly implemented 
  61.                             and deliver measurable improvements for our customers.
  62.                             <br>
  63.                             <br>
  64.                             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  65.                         </span>    
  66.  
  67.                         <IMG src="Images/Charts/img_ServicesD4.jpg">
  68.                         <br>
  69.                         <br>
  70.  
  71.                         <span class="subtitle1">Success Story: Army Aspire</span>&nbsp;<A class="subtitle" href="#top"><u>[TOP]</u></A><br>
  72.                         <br>
  73.                         <span class="subtitle">Situation</span><br>
  74.                         <br>
  75.  
  76.                     </div>
  77.                 </div>
  78.                 <div class="leftborder servicesLFT">
  79.                     <div class="subnav" id="Submenu">
  80.                         <div class="lefttopbuffer" id="lefttopbuffer"><IMG src="Images/misc/top-left-buffer.jpg"></div>
  81.                         <div class="submenu first" id="submenu1"><A style=" TEXT-INDENT: 16px;" class="sidemenu2lines" href="ServicesOC.aspx">Organizational<br style="text-indent:16px">
  82.                                 <label style="margin-left:16px"></label>Change</A>
  83.                         </div>
  84.                         <div class="submenu second" id="submenu2"><A class="active2lines" href="ServicesIT.aspx">Information<br>
  85.                                 &nbsp;&nbsp;&nbsp; Technology</A>
  86.                             <div class="divArrow" id="arrow"><IMG alt="active" src="Images/misc/img_arrow.jpg"></div>
  87.                         </div>
  88.                         <div class="submenu third" id="submenu3"><A class="sidemenu2lines"     href="ServicesPE.aspx">Public&nbsp;and<br>  
  89.                                 &nbsp;&nbsp;&nbsp; Environmental</A></div>
  90.                         <div class="submenu fourth" id="submenu4"><A class="sidemenu" href="ServicesEL.aspx">eLearning</A></div>
  91.                         <div class="submenu fifth" id="submenu5"><A class="sidemenu" href="ServicesCU.aspx">Contact 
  92.                                 Us</A></div>
  93.                     </div>
  94.                     <div class="leftimage" id="leftborderpattern"></div>
  95.                 </div>
  96.                 <div class="rightborder ServicesRT" id="rightborder"><IMG alt="Image" src="Images/Rightborder/img_right_services.jpg"></div>
  97.             </div>
  98.                 <DIV class="footer" id="footer"><IMG src="Images/misc/Footer.jpg"></DIV>
  99.  
  100.         </div>
  101.         <a style="Z-INDEX: 900; VISIBILITY: hidden; POSITION: absolute; TOP: 1120px" name="success1">
  102.             SS1</a> <a style="Z-INDEX: 900; VISIBILITY: hidden; POSITION: absolute; TOP: 1920px" name="success2">
  103.             SS2</a>
  104.     </body>
  105. </HTML>
  106.  
Jul 13 '06 #1
2 3036
ronverdonk
4,258 Recognized Expert Specialist
I displayed your code in my browser and it prints what is displayed. So the culprit must be in one of your included files, such as the CSS ones.

Are you sure that you don't have a { display:none; } somewhere in your CSS files? Or a separate media="print" include?

Ronald :cool:
Jul 21 '06 #2
letsgetsilly
9 New Member
I'll check it out. It definetly works when I create an independent print.css file
Jul 21 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
6092
by: Leigh Riley | last post by:
My PHP.ini file sets the following: file_uploads = on upload_max_filesize = 3M upload_tmp_dir = /tmp When I try and upload the file, it doesn't appears in /tmp. The name of the Submit button is userFile. On the processing page, I echo $userFile and it gives "/tmp/phpjXJ1ZK". However, the following
7
1769
by: Bob Bedford | last post by:
Sorry to ask here, but can't find any CSS NG with more than 10 threads. On my site they are various article to sell from various companies. The companies update the database directly on my server. Now, some companies would like to "integrate" their articles also on their website. For this, we are doing the job to have their articles coming from our site
117
7226
by: Peter Olcott | last post by:
www.halting-problem.com
1
3646
by: Mohamed Fysal | last post by:
I have written a Regular DLL with many Export Functions and one CALLBACK fun ction . The callback function declared in the .cpp file of the Regular DLL is as fol lows: typedef BOOL (CALLBACK* ExProcessMessage)(UINT msg, LPVOID lpParam); // ExProcessMessage MyProcMsg;
12
1589
by: Peter Proost | last post by:
Hi group, I've got what seems a simple problem, but I can't find the solution. I've got a textbox and a handheld scanner to scan barcodes, the scanner just generates keypresses like a keyboard would so if I scan a barcode and the number from this barcode is 4210, the scanner generates a keypress on the 4 than on the 2 than on 1 and finally on the 0. Now what's my problem, normaly the barcodes' length always is 16 (so if the length of the...
1
5260
by: choffi | last post by:
Hi, I have a problem which, having looked through various previous postings, I notice that others have also come across. The problem I have as follows: I have incorporated an external Active-X control into my VB.NET project. The control itself works very well (it parses and displays AutoCAD DXF files). The problem is that I need my users to be able to use the graphical UI for drawing shapes on a panel I have designed
19
3161
by: cpnet | last post by:
I'm using VS2005, C#, ASP.NET 2.0. I'm trying to create a report using SQL Reporting Services (to be used in local mode so I don't have to deal with SQL Server). When I create a new report in my website, nothing shows up in the Website Data Sources window. I added a few different strongly-typed Datasets to my website, and they don't show up. The only way I could get anything to show up was to create a new class that's derived from a...
5
2052
by: =?Utf-8?B?U2FpIFZhamph?= | last post by:
Hi I am working on a website and suddenly this afternoon i cannot view anything on my pages. No html is being rendered to the pages (no errors are shown while compiling the website). I have tried clearing the temporary asp.net folder and re-compiling the solution. But, if i try to run another project (website) that i built for test purposes, it works fine. Can anyone let me know what could be the problem? Regards.
10
3214
by: r_ahimsa_m | last post by:
Hello, On index.html page I have a table with id="property_fields". <table id="property_fields" name="property_fields" border="0"> It contains set of rows with the following IDs: var propertyRows = new Array( "region_row", "town_row", "district_row", "address_row", "house_row", "floor_no_row", "rooms_row", "floors_row", "area_row", "year_built_row", "ownership_row", "standard_row", "garrage_row", "parking_row", "kitchen_row",...
0
8921
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9284
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9148
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8151
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4528
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2683
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2165
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.