How to set the table cell width How to set the table cell width
 

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

How to set the table cell width

Started by nickfzx, August 26, 2006, 11:15:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nickfzx

if I had more control over the positioning of say 6 images of different sizes I could make drop shadows or frames around images as a background image.

Is this something that CpmFetch 2.0 will have...so say one images is really thin it will still have to occupy a space of say 50 pixels in width regardless of how thin/wide it is?

This might be possible with CpmFetch 1 but I havent figured it out.

You can see here at the bottom I have used cpmfetch a lot.

http://www.amateurillustrator.com/

Cheers

Nick

vuud

Quote from: nickfzx on August 26, 2006, 11:15:47 PM
if I had more control over the positioning of say 6 images of different sizes I could make drop shadows or frames around images as a background image.

Is this something that CpmFetch 2.0 will have...so say one images is really thin it will still have to occupy a space of say 50 pixels in width regardless of how thin/wide it is?

This might be possible with CpmFetch 1 but I havent figured it out.

You can see here at the bottom I have used cpmfetch a lot.

http://www.amateurillustrator.com/

Cheers

Nick

Do you mean to stretch the image to all be the same width?  Or just force the "cell" it occupies to be that wide?

Your site rocks!  I have seen some really cool sites using cpmfetch in the past few days... I should be writing them down!

Vuud

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

nickfzx

Hi I mean to force the cell to be a certain width and height actually, is there a way to do this?

Thanks for the nice words about my site :)

vuud

Quote from: nickfzx on August 27, 2006, 04:39:35 AM
Hi I mean to force the cell to be a certain width and height actually, is there a way to do this?

Thanks for the nice words about my site :)

I believe you can in the new and old versions by passing the cellattribute via the options array...

Here is an example...


$styleguide = array(
"linkstyle" => "photoclip",
"alttag" => "Rated: %V",
"subtitle" => "Rated: %V",
"imagestyle" => "photoclip",
"imagesize" => 'thumb',
"cellattributes" => array('align' => 'right','width' => '200'));

$objCpm->cpm_viewRandomTopRatedMediaFrom ("", 1, 5, $styleguide);


Don't feel bad, I am not sure I ever documented it as a feature.  Silly me.

Anything stuffed in the cellattributes will be inserted into each <TD> tag

Hope that works out for you.

Vuud

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

nickfzx

cheers

thats working great

is there any way to have the text adjusted seperately from the image....so say the image vertically adjusts to the center while the text adjusts to the bottom.

Cheers

Nick

vuud

Quote from: nickfzx on August 27, 2006, 03:33:51 PM
cheers

thats working great

is there any way to have the text adjusted seperately from the image....so say the image vertically adjusts to the center while the text adjusts to the bottom.

Cheers

Nick

that one I don't know - if you tell the image to align to the top and the text to the bottom?  Maybe something in CSS?  Got no idea on that one.  They are both inside the same <TD> so that puts a damper on things I'd say. 
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

nickfzx

yeah I gave up trying to change the text seperately.

I have updated the homepage with the cell attributes stuff:

check it out

http://www.amateurillustrator.com/

thanks for the help  ;D

vuud

Quote from: nickfzx on August 27, 2006, 07:06:33 PM
yeah I gave up trying to change the text seperately.

I have updated the homepage with the cell attributes stuff:

check it out

http://www.amateurillustrator.com/

thanks for the help  ;D

That actually looks much much better!  Nice job!
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

nickfzx

cheers,

it took a lot of trial and error getting images to align with my background images...so many different image sizes and slightly unpredictable positioning....but worth the effort in the end because it looks a lot more professional.

best,

Nick

vuud

Quote from: nickfzx on August 28, 2006, 02:58:25 AM
cheers,

it took a lot of trial and error getting images to align with my background images...so many different image sizes and slightly unpredictable positioning....but worth the effort in the end because it looks a lot more professional.

best,

Nick

I find it sometimes helps to normalize the image width when they get displayed...  set the images to all scale to say 100px.  But yours looks fine as it is :D
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco