Xaraya / CSS Question: Center Thumbnail Image in Block?

Danny

Joined: 2003-03-24
Posts: 90
Posted: Mon, 2005-05-16 14:04

With Gallery2 embedded in Xaraya I have a layout question. Within the blocks "Most popular photo", "Random Photo", the Thumbnail image is on the bottom, so the text "Views" and "Photo title" is not shown, because the Thumbnail of the image is overlaying it.

So, now comes my question, where can I center the thumbnail image, so the photo title and views are visible?

Gallery2 is from 05/16/05, with XarayaIntegration Code from 04/10/05.

Thanks in advance,

Danny

----

Gallery-Version = 2.0-beta-2+ Kern 0.9.16
PHP Version = 4.3.10 apache
Webserver = Apache/1.3.31 (Unix) FrontPage/5.0.2.2635 PHP/4.3.10
Datenbank = mysqlt 4.0.24_Debian-4woody1-log

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-05-16 14:30

interesting...
i'm not into css, well i try to not lose time playing with css because i know how much time one can lose just by finding some css that works in all browsers.

that said, i recommend firefox + its webdeveloper extension. you can edit css online and find the css snippets that have an influence on a certain html junk...

and i know, G2 doesn't look good embedded in xaraya. i assume most xaraya users will customize their xaraya website and thus have enough knowledge to customize the G2 look accordingly. but still, it should look better out of the box, perhaps we need a G2 layout for embedded G2 or more specifically for g2 embedded in xaraya.

 
Danny

Joined: 2003-03-24
Posts: 90
Posted: Mon, 2005-05-16 15:12

In which file of your Xaraya-Gallery2 integration is the code for displaying the image block? I can look, if i can correct something, so it is displayed correctly.

Yes the option would be very usefull, a special G2 layout for embedded into Xaraya. It would be good, if there is an option to center thumbnails.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-05-16 15:19

you'll have to change the css files. the html that is generated is from G2, not from my integration.

it doesn't matter in this case, but you asked :)
the gallery2 module for xaraya offers a image block in xaraya (gallery2/xarblocks/image.php). this image block calls GalleryEmbed::getImageBlock(), see gallery2 (not the xaraya module) modules/core/classes/GalleryEmbed.class.

i guess you can edit the appearence of the imageblock by editing the css.
else, you can create a templates/local/ directory in g2/modules/imageblock/templates/ and create your own style of the imageblock.