Sent by Porter Glendinning on 1 February 2002 17:05
At 16:24 2/1/02, John Woram digitized these thoughts:
>I guess I'm still missing something here. If there is only ONE
>"a:after {content: ... " in the print media style sheet, and there are
>SEVERAL links on the page to various locations, then the same content
>appears after EACH link when the page is printed. If I've got that
>right, then Opera is doing what it's supposed to do (I think<g>).
If you're using a static string for the content property, then yes,
this is what you should be seeing. However, I think Kevin's suggestion
was to use the attr() function to insert the value of the href
attribute as the :after content for each link. In this case, the
content that would be inserted would be different for each link, or at
least would reflect each link's href value.
>Everything between the "**" on both lines is blue, underlined. So, my
>problem is that the added "This is a test" phrase -- which is correct
>for only one link -- appears within every link on the page.
This is what you /should/ be seeing. The :after pseudo-element inserts
its content after the content of the selected element, but still within
that element. Based on the selector you said you're using, a:after, the
text is added to the content of all of your links.
If you want it to only apply to one particular link you need to either
use a class or an id to differentiate that link from the others, which
you could then select like this:
a.class:after
a#id:after
- Porter
+--------------------------------------------------------+
| Porter Glendinning [EMAIL-REMOVED] |
| Web/UI Commando http://www.glendinning.org |
+--------------------------------------------------------+
| Porter's Workshop - http://www.serve.com/apg/workshop/ |
+--------------------------------------------------------+