Posted by Krustov on 06/10/07 20:43
<comp.lang.php>
<Linuxx0r>
<Sun, 10 Jun 2007 13:22:55 -0700>
<1181506975.210422.315210@n4g2000hsb.googlegroups.com>
> you can use a php script as a stylesheet. in this php generated
> stylesheet you can define the background image: http://www.tizag.com/cssT/background.php
> then you just have to import your stylesheet in your page and the
> background will be displayed
>
Wouldnt it be better to use the stylesheet as normal - and
define/declare the background image in the <body> tag .
<html>
<head>
<title>test</title>
<link href="<?php print $poop_css; ?>" rel="stylesheet" type="text/css">
</head>
<?php
blah blah blah
?>
<body text="#FF0000" link="#FF0000" vlink="#FF0000" alink="#FF0000"
style="background-image: url(images/<?php print $blah; ?>.jpg);"
[Back to original message]
|