Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 28th, 2008, 03:12 PM
nathj's Avatar
Expert
 
Join Date: May 2007
Location: North Tyneside
Posts: 781
Default <a> doesn't print

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
Reply
  #2  
Old August 29th, 2008, 06:41 PM
FLEB's Avatar
Newbie
 
Join Date: Aug 2008
Posts: 24
Default

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.
Reply
  #3  
Old September 1st, 2008, 09:09 AM
nathj's Avatar
Expert
 
Join Date: May 2007
Location: North Tyneside
Posts: 781
Default

Quote:
Originally Posted by FLEB
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
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles