Jump to content

<base> Element In Css


jadiebrown

Recommended Posts

I understand how to use the <base target="..."> statement within the <head> section of a document in order to have all links open in an iframe. However, I actually intend for every link across the site to open in the same target. Is it possible to write the <base target="..."> statement into an external style sheet? If not, is there another way to do this or would I have to code the statement into each page individually?

Link to comment
Share on other sites

<base> is an html tag which will not work in a CSS file.You will need to add it into every page or use server-side scripting to do that for you.

Link to comment
Share on other sites

Thanks. I understand that I will need to use PHP Includes. I have a vague idea of how to do this and am working on getting it right. I can insert the include into the <head> section of the document, I am just struggling to write the actual .php document. Really all I need it to do is state that all links will target the iframe.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...