"Tony Marston" <to**@NOSPAM.demon.co.uk> wrote:
The code
<a href="..." target="_blank">...</a>
will not validate as XHTML STRICT because of the 'target' tag,
Doesn't validate in HTML 4.01 Strict either.
so how do I
achieve the same result by moving it to a CSS file?
<a href="..." class="whatever">...</a>
a.whatever {target-name: new; target-new: window; target-position:
above;}
But that's CSS3 and isn't supported by anything at the moment, so
instead you either use a Transitional doctype or use JavaScript
instead. Or why not let your visitors choose to open a new window if
they want to, rather than trying to decide for them?
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>