doodlebee, the actual stylesheet isn't online, only a test server locally, but here is the style sheet I have (it's short since I'm only testing one scenario):
style.php
<?php
header("Content-type: text/css");
$white = '#ff6600';
$dkgray = '#0099ff';
$dkgreen = '#008400';
?>
.funny{
background: url("texting.php?value=Funny!") top right no-repeat <?php echo $white; ?>;
display: block;
width: 100%;
height: 45px;
}
.notfunny{
background: url("texting.php?value=Birthin the Baby!") top right no-repeat <?php echo $dkgray; ?>;
display: block;
width: 100%;
height: 45px;
}
h1, h2, h3, h4 {
color:<?=$dkgreen?>;
}
blockquote {
color:<?=$dkgreen?>;
}
The last two entries are just to test the dynamic colors
One thing to note, and this has been discussed on a few websites I've found, is that the style sheet is not cached, unless you add some caching headers. If you're interested in that, I'd be happy to show you.
Funny and notfunny are just two headers for posts I was messing with. I didn't really construct the post loop yet, as I've been working on getting the images to align correctly.
I'm not sure I'm being clear on this though. I want my front page, with multiple posts and multiple categories to have backgrounds in the heading area with the category in them. While this would probably also happen on the category page, it would kind of be like having a "music" icon next to a post in the "Music" category, only it would actually have the word "Music" in the background of the header of the post.
And while I could go in and make a class for each category without a problem, I was hoping I could make it dynamic, so
1. If I make a new category, I wouldn't need to add a class, it would already be there and
2. If I were to release this to the public, it would create the same backgrounds for each user's categories.
Here's an example