6
Hey, i managed to get a background image to show in a marquee module block, I also tried it in a custom block but i couldnt get it to work, i think it might be because the custom block doesnt have its own seperate template, im not sure though.
Heres the exact code i used in the marquee block:
<table width="400" height="125" border="0" cellpadding="0" cellspacing="0"><tr>
<td background="http://mjtkop.com/home/uploads/img444cee41bdf8b.gif"><{$block.marqueecode}>td>
tr>
table>
I basically just added the background bit after the
You can see the image working here scroll down to the scrolling marquee block thats says 'Visionary Lyrics'.
Michael Jackson = King Of Pop
Xoops = King Of CMS
7
Big shame as I really want it to work in a custom block... gutted
8
It took me a long while but I think I have this figured out. The background-image will not display if its dimensions are larger than the block it is in. Try resizing your image to fit your block size and it should appear. You can set the block width and height in the div. For a 400px image you could use: Good Luck, TCNet
9
Like that.. but dont the dimensions affect everything thats within that block?
10
Hi, Quote: dont the dimensions affect everything thats within that block? Yes, you are correct. Sorry to have confused the issue, you do not have to specify the div's width and height. Its the image's size that is preventing it from appearing, try resizing the image(approx 360px) to fit within the block's minimum dimensions. Also, to prevent the image from repeating (tiling) you can add background-repeat: no-repeat; <td colspan="8" bgcolor="#efefef" > <div class="blockContent"> [color=0033FF]<div style="background-image: url(http://www.ichipromotions.com/misc/images/Ichi-Promotions-Logo.gif); background-repeat: no-repeat;">[/color] <span style="font-weight: bold; text-decoration: underline; font-family: Arial,Helvetica,sans-serif;"> SUNDAY – Anything Goes!span><br style="font-family: Arial,Helvetica,sans-serif;"><span style="font-weight: bold; font-family: Arial,Helvetica,sans-serif;"> * 13:00 – 15:00:span> <b><a href="http://www.rewind-dnb.co.uk/image/ICHI_SCHEDULE.jpg">Click HERE for the full schedulea>b> center> [color=0033FF]div>[/color] div> td> Hope this helps, TCNet
142 user(s) are online (64 user(s) are browsing Support Forums)
Members: 0
Guests: 142
more...
Stats |
Goal: |
$100.00 |
Due Date: |
Aug 31 |
Gross Amount: |
$0.00 |
Net Balance: |
$0.00 |
Left to go: |
$100.00 |
|
|