Previous Message
Next Message

Re: [css-d] Newbie Question

Sent by Ben Nunn on 8 April 2002 13:01


> At 10:18 -0400 4/8/02, Dan Geiser wrote:
>
> >Is it possible to use CSS to set the target of a hyperlink?
>
>     If I understand your question correctly, the answer is "no."  You
> can affect the presentation of hyperlinks, but you can't change the
> content of their attributes (such as 'href').

Technically this could be achieved via non-standard CSS - assigning the
target on click, via the behaviour attribute.

But this is proprietory IE-only stuff, not part of the spec. Yet.

And if you're wanting to avoid the strict xhtml target problem and still
have your pages validate (and it's something more than a few of us have
stumbled over) then you'll probably be wanting to use 100% valid standard
CSS anyway.

BTN
Previous Message
Next Message

Possibly related: