cpmfetch image border cpmfetch image border
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

cpmfetch image border

Started by D2K, March 06, 2008, 02:01:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

D2K

Hello guys,

first of all, thank you for this wonderful mod/hack or whatever you call it :p It just works perfectly.
However, im stuck with ONE small issue:

There is a border around the images...

Now don't think I just saw it and start complaining..I searched this forums and I tried hard to remove it..(for 1h now).
But no matter what I do, there still is that annoying border.

So let me give you the code im using to include cpmfetch, and the CSS code:

<?php
  
include "./../gallery/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./../gallery/cpmfetch/cpmfetch_config.php");
  
$options = array("imagesize" => "int""imagelink" => "int""imageheight" => "145""imagewidth"=>"190""imageStyle" => "cpmimage""alttag"=> "{{pTitle}}""tablestyle" => "cpmimage");
  
$objCpm->cpm_viewRandomMediaFrom("",13$options);
  
$objCpm->cpm_close();
?>


and the css

.cpmimage{
border: none;
}
a img {
border: none;
}


I tried it all, but nothing seems to work. I hope you can help me out.

PS: Normally, when I add links to my pictures on my website, there is no border (without me doing anything).

Nibbler

Post a link to where you are using it.

D2K

OK, I found the problem haha. I just removed an "id=" tag which I thought wouldn't change anything, but then it did :D

anyways, now one last problem: how can I add 1 or 2 extra space between the images?

and thank you nibbler for the fast reply. Very appreciated.

Nibbler

Add some padding. If you want details post a link.

D2K

And where should I add paddings? And how to do this...I just use MS Frontpage to realize things I do. So I'm really clueless. Could give me a bit more details please?
And don't want to post a link right now as I'm still building my site and want to keep users away til the "Grand Opening".

But once again, thanks for the quick reply; just could you be a bit more specific? Sorry for being so demanding. Thank You :)

Nibbler

Something like this:


.cpmimage{
padding: 5px;
}

D2K

hey, i added the padding to my css under cpmimage, but nothing seems to be changing. there is still the same amount of space between the images, no matter to what value i change it too. what am i doing wrong..?

Nibbler

Can't tell without seeing the code, sorry.

D2K

ok so here is my html (with cpmfetch) and css code:

HTML:
<table border="0" cellpadding="0" cellspacing="0" width="630">
<tr>
<td width="14" bgcolor="#EEEEEE">&nbsp;</td>
<td width="601" bgcolor="#EEEEEE" valign="top">
<p align="center"><?php
  
include "./../gallery/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./../gallery/cpmfetch/cpmfetch_config.php");
  
$options = array("imagesize" => "int""imagelink" => "int""imageheight" => "145""imagewidth"=>"190""imageStyle" => "cpmimage""alttag"=> "{{pTitle}}""tablestyle" => "cpmimage""cellstyle" => "cpmimage");
  
$objCpm->cpm_viewRandomMediaFrom("",13$options);
  
$objCpm->cpm_close();
?>
</td>
<td class="content" width="15" bgcolor="#EEEEEE" valign="top" align="right">

&nbsp;</td>
</tr>
</table>


and my css code:
.cpmimage{
border: none;
padding: 15px;
}


hope this helps and hope you can find the problem. thanks a lot nibbler.

Nibbler

I need the output, not the source.