Click to See Complete Forum and Search --> : same target


leprkn
07-03-2003, 06:53 PM
i need to know how to make all my href's target the same frame using a css.

can anyone help?

nkaisare
07-03-2003, 11:21 PM
CSS is a tool that allows you to style your page in a particular way. It does not control content on the page. For that, you use HTML.

<a href="link.html" target="_self">This opens in the same frame</a>

Jonathan
07-03-2003, 11:37 PM
you can also name your frames then use this:

<a href="#" target="your_frame_name">This will also appear in the same frame.</a>

Charles
07-04-2003, 05:08 AM
And you can set the "target" attributes globally by using the transitional DTD and the BASE element. See http://www.w3.org/TR/html4/struct/links.html#edef-BASE.