<base> Element in CSS

jadiebrown

New Member
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?
 

mezangath

New Member
No, you can't put html into a CSS document.

Though, if you're using php (like most people do) you can create an external document named like iframe.php (or whatever)

then use:
PHP:
<?php include($_SERVER["DOCUMENT_ROOT"].'/iframe.php'); ?>

This will include iframe.php wherever you put it on your site. :)
 
Top