How to IMG Tags Open in New Window

hi friends

i need your help

how i can use img tags open in new windows css

for example i ve post

if i ve not set target =“_blank” in html code

i need to by default this option in css

can any one know this


[FONT=Verdana]You can’t. CSS is about presentation and style, not behaviour – opening in a new window is behaviour. You can use either HTML (target=“_blank”) or Javascript, but not CSS.

(So I’ve moved this to a more suitable part of the forum)[/FONT]

To make target = “_blank” the default for all the hyperlinks on the page, put this line in your page head:

<base target="_blank" />


<img class=“aligncenter size-full wp-image-25498” title=“sports-logos-1” src=“” alt=“sports-logos-1” width=“400” height=“400” target=“_blank”>

This is the example for the first image. You add the target=“_blank” as like this above image tag.

Aliqayyum, you’ve had three replies. Were any of them useful to you? I’m asking in case anyone else has the same problem.


Question answered and original poster non-responsive. Thread closed.