473,836 Members | 1,948 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. }
  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>
  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>
  52.                         <span class="subtitle">Information Technology (IT)</span><br>
  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>    
  67.                         <IMG src="Images/Charts/img_ServicesD4.jpg">
  68.                         <br>
  69.                         <br>
  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>
  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>
  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>
Jul 13 '06 #1
2 3045
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
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

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
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
by: Peter Olcott | last post by:
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;
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...
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
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...
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.
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",...
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...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
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...
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...
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...
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...
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...
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.