Page 1 of 1

image list valign="top" instead of valign="bo

Posted: Sun 9. Nov 2003, 01:51
by Moozie
When I choose image list as an article content and I put in 10 images, with a short text underneath every image, the script creates a page with all images + text valign="bottom".

The discriptions are different in length so the page will look messy, because all the pics are aligned at the bottom. So one image is placed higher than his nextdoor brothers (if I use a 3 column image gallery).

I would like to change the php file where this valign="bottom" is set and change it into valign="top".

But do you know in which file I have to change this?

Posted: Sun 9. Nov 2003, 02:14
by Moozie
Found it already:

In the file: /include/inc_front/front.func.inc.php
Line 122

Change:

Code: Select all

//Aktuelle Bildspalte ausgeben
$table .= "<td align=\"center\" valign=\"bottom\"".(($class)?" class=\"".$class."\"":"")." width=\"".$imagelist[$key]["w"]."\">";
Into:

Code: Select all

//Aktuelle Bildspalte ausgeben
$table .= "<td align=\"center\" valign=\"top\"".(($class)?" class=\"".$class."\"":"")." width=\"".$imagelist[$key]["w"]."\">";

Posted: Tue 18. Nov 2003, 18:44
by Moozie
Oliver,

Maybe this change is a good one to take over into the file
/include/inc_front/front.func.inc.php

Because is there a reason to align the pictures with text underneath them on bottom? It will create a messy looking page. Align top will create better looking pages.

Or is the bottom align for another reason?

Posted: Tue 18. Nov 2003, 22:42
by Oliver Georgi
No - I don't know why it is bottom aligned. But this is not optimal at the moment. This has to be redesigned that captions are in an own table row not in imagecell - then it is better.

Oliver