I appologize in advance. I'm sure this is covered somewhere but I swear I searched all last night and today before posting. I'm stumped.
So here's the project: http://www.jofaba.com
As you can see, I've got a theme to the modules. The only problem is that while it looks like what I want is already done, it's actually a mirage. What you see is hard coded into the page.tpl.php like this:
<div id="right">
<div class="boxtop"></div>
<div class="boxx">
<?php if ($sidebar_right != ""): ?>
<?php print $sidebar_right ?>
<?php endif; ?>
</div>
<div class="boxtop"></div>
<div class="boxx">
<?php if ($sidebar_left != ""): ?>
<?php print $sidebar_left ?>
<?php endif; ?>
</div>
What I'd like to do , is remove the hard coding so that each module that is generated creates it's own module theme like you currently see on my page. Obviously, right now I've got two div's with background images and I've assigned one as "left" and one as "right". If I were to put another module on the page, I'd have to assign it to inside one of those "modules", and that's not what I'm looking for.
I easily figured out how to have one image generate by using the .block value in the CSS, but there are two images, and they work in such a way that the box appears to be adjustable. In reality though, you just don't see the entire image. It works like frames (as I'm sure you know) so that the top part is cut off. The lower line image is actually 500px high, and both that you see use the same image. I'm open to do it differently though.