Tim Martens wrote:
> I have this:
> 
> <div class="description">
>    Get business plan templates <a href="link_location" title=
>    "View project: SPD.101 Strategy Complete">[P]</a>
> </div>
> 
> And would like to print this:
> 
>       Get business plan templates [P] SPD.101 Strategy Complete

I don't think you're going to find a CSS solution to this problem, not 
the way you've framed it.  It would be pretty straightforward with a 
Javascript/CSS solution, though, if you are willing to change the markup 
a bit to something like:

     <div class="description">
        Get business plan templates <a href="link_location">[P]
        <span class="print-only">SPD.101 Strategy Complete</a></span>
     </div>


add a CSS rule:

     @media screen {.print-only {display:none;}}

and some Javascript to run after the window loads to find every 
"span.print-only" inside an anchor element and set the title of that 
anchor to be "View project: " + the content of the span.

This is not hard, and is quite accessible, but it adds what might be an 
unwanted dependency on Javascript.  The JS could be written completely 
unobtrusively, but you still might not want it.

As to a pure CSS method, I don't see anything that's going to let you 
split your strings up that way.

Good luck,

   -- Scott

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to