473,399 Members | 3,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

<a> doesn't print

nathj
938 Expert 512MB
Hi,

I've just developed a print style sheet for a site I'm working on and it's pretty much working as expected. The only trouble is that links aren't displaying.

I know that a link on printed document is not much use and I know there are way of getting the href out. But the trouble is more basic than that - the actual link text is not printing.

So if on screen it says "Read our story for full details" and our story is a link the print out says "Read for full details"

the CSS I have for printing links is:
Expand|Select|Wrap|Line Numbers
  1. a.inlineLink a.inlineLinkWhite
  2. {             
  3.     background            : transparent; 
  4.     text-decoration        : underline;
  5.     color                : #000000;    
  6.     font-size            : 12pt; 
  7.     display            : inline; 
  8. }
  9.  
As you can tell this is used on the page with links that have a class of 'inlineLink', the rules for that are slightly different.

It seems that most of my print stylesheet is working but this does not. Can anyone point out what's missing from the CSS?

Many thanks
nathj
Aug 28 '08 #1
2 1259
FLEB
30
First: What Web browser(s) have you tried this on? Also, is there a particular browser you're targeting (if it's an Intranet or other such private site), or is this a general-purpose site.

Second: Can you link to an example or test case with the "full package"-- the HTML, CSS, and any JavaScript-- in a form that the behavior is triggered? This could be the result of the CSS you've shown, other CSS taking precedence, HTML structure, JavaScript interference, or even a browser bug from an interaction of any of these.
Aug 29 '08 #2
nathj
938 Expert 512MB
First: What Web browser(s) have you tried this on? Also, is there a particular browser you're targeting (if it's an Intranet or other such private site), or is this a general-purpose site.

Second: Can you link to an example or test case with the "full package"-- the HTML, CSS, and any JavaScript-- in a form that the behavior is triggered? This could be the result of the CSS you've shown, other CSS taking precedence, HTML structure, JavaScript interference, or even a browser bug from an interaction of any of these.
Hi there,

Thanks for the reply. In answer to your questions it happen on the four major browsers (FF, IE, O, S) I'm using Vista as the OS but it also occurs on XP.

However, there is no need to worry any more (though I'm sure you weren't worried). I re-read the CSS structure and the way the files were linked and discovered some conflicting rules that were causing my problem. I sorted the rules out and it all works lovely.

Thanks for the help.
nathj
Sep 1 '08 #3

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

Similar topics

77
by: Gerrit Holl | last post by:
Hi, the <> inequality test operator has been deprecated for a loooooong time. Is there a reason that it doesn't trigger a DeprecationWarning? $ python2.2 -Wall -c "print 0 <> 0" 0 $...
2
by: Eshrath | last post by:
Hi, What I am trying to do: ======================= I need to form a table in html using the xsl but the table that is formed is quite long and cannot be viewed in our application. So we are...
2
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
15
by: Aman | last post by:
Hi, wrote this piece of code on SunOS 5.9 , compiler g++ 2.95.3 trying to see the byte order of an int or short int by converting to char* . doesn't work . the char* cpt doesn't seem to be...
2
by: Steven T. Hatton | last post by:
I believe the answer is that the language doesn't support the ability to retain a reference to a std::indirect_array<>, and would be illadvised to try, but I figure I'll ask just to be sure. What...
3
by: tkirke | last post by:
How does one transfer a buffer object from python -c and back again (assuming the data gets modified)? I can't seem to get this or anything else to work, but am clueless as to what I'm doing wrong...
4
by: Anastasios Hatzis | last post by:
I'm looking for a pattern where different client implementations can use the same commands of some fictive tool ("foo") by accessing some kind of API. Actually I have the need for such pattern for...
3
by: ajay2552 | last post by:
Hi, I have a query. All html tags start with < and end with >. Suppose i want to display either '<' or '>' or say some text like '<Company>' in html how do i do it? One method is to use &lt,...
14
by: urikaluzhny | last post by:
It seems that I rather frequently need a list or iterator of the form And there is no one like this. May be there is another short way to write it (not as a loop). Is there? Thanks
4
by: ezechiel | last post by:
Hi, while testing the program (runs in DOS), I thought "if someone hits enter without typing a letter before, what happens?" I tested and the script ends.. Is this normal, or how can I avoid this?...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
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,...
0
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...
0
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,...

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.