1
mixmaster
Block Image
  • 2005/1/23 12:35

  • mixmaster

  • Just popping in

  • Posts: 28

  • Since: 2005/1/21


I want to divide an image into three parts - a left, center and right - where the left is fixed width, the center is repeat-x, and the right is fixed width. I want to include this inside a block so that the image looks like it extends the entire width of the block for any given block size.
Take the center column block for example. My theme for this block is as follows:

<!-- Display center blocks if any -->
<{if 
$xoops_showcblock == 1}>

    <
table cellspacing="0">
    <
tr>
    <
td id="centerCcolumn" colspan="2">
    <!-- 
Start center-center blocks loop -->
    <{foreach 
item=block from=$xoops_ccblocks}>
    <
div style="padding: 5px;">
    <
div class="blockTitle"><img src="<{$xoops_imageurl}Image.gif"></div>
    <
div class="blockContent"><{$block.content}></div>
    </
div>
    <{/foreach}>
    <!-- 
End center-center blocks loop -->


Now, where I have the Image.gif, instead of a single image I want to be able to include three, as I described above. How would I implement this? Any pointers would be appreciated. Cheers.

2
LazyBadger
Re: Block Image

If you anyway use table, use 3 td of different classes.
Do you want code?!

Login

Who's Online

139 user(s) are online (93 user(s) are browsing Support Forums)


Members: 0


Guests: 139


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits