Remember me? forgot password | register

SilverStripe Forum

3456 Posts in 754 Topics by 467 members

Jump to:

Extending and hacking

If this is your first visit, you will need to register before you can post. However, you can browse all messages below.

Community » SilverStripe Forum » Extending and hacking » 'Gallery' Thumbnail Layout Issue
Page: 1 go to end Reply
Author Topic: 'Gallery' Thumbnail Layout Issue 363 views
  • Adamski
    avatar
    Community Member
    6 posts

    'Gallery' Thumbnail Layout Issue Link to this post

    Help..... please....... someone!

    Ok, so I might just be being dumb but I can't for the life of me sort this one out.

    I want my regular sized (Cropped Resize - 128px x 128px) thumbnails to sit side by side with no gaps - in a mosaic kind of way. I've played around with the CSS and I can't get them any tighter than they currently are....

    There is a screenshot here...... http://www.skigo.co.uk/proofs/thumbnailissue.png

    Please help, Silverstripe has been awesome for the type of CMS I have been looking for, and this module couldn't be any more ideal but I really need this bit to work for me.

    Thanks in advance.
    /Adam

  • Adamski
    avatar
    Community Member
    6 posts

    Re: 'Gallery' Thumbnail Layout Issue Link to this post

    I'm one step closer, i've got rid of the gap going across but not between the rows. For some reason it is calculating the table rows at 130px instead of 128px...........

    hope someone out there has a bright idea.... (new screenshot)

    http://www.skigo.co.uk/proofs/thumbnailissue2.png

    /Adam

  • Adamski
    avatar
    Community Member
    6 posts

    Re: 'Gallery' Thumbnail Layout Issue Link to this post

    heh........ me again.

    Line Height was the culprit. I set the line height for the table element to 0px and it's now spot on. (not using text in gallery so it's not a problem)

    Thanks for listening.... ;-) Sorry for cluttering up the forum.

    /A

  • Adamski
    avatar
    Community Member
    6 posts

    Re: 'Gallery' Thumbnail Layout Issue Link to this post

    back again...... turns out that fix worked for everything except IE.

    Anybody got any suggestions? This is getting desperate for me now as I have to deliver this site in the next couple of days.

    help...................!!!

  • 3N1GM4
    3N1GM4's avatar
    Community Member
    8 posts

    Re: 'Gallery' Thumbnail Layout Issue Link to this post

    try editing the code in the GalleryContentPage.ss, if i remember correctly it uses tables, and add
    cellspacing=0 and cellpadding=0

  • Adamski
    avatar
    Community Member
    6 posts

    Re: 'Gallery' Thumbnail Layout Issue Link to this post

    you are an absolute legend!!! I cannot thank you enough. You have really saved my skin..

    Thank you Thank you Thank You!!!

  • willr
    avatar
    Core Development Team
    735 posts
    3 SilverStripe Sites 2 SilverStripe Themes

    Re: 'Gallery' Thumbnail Layout Issue Link to this post

    if i remember correctly it uses tables..

    It should really use something like a ordered or unordered list shouldnt it? Never did like that it used a big old ugly table. Anyone want to volunteer to tidy up the code for the gallery :P

    363 views
go to top Reply

Currently Online:

There is nobody online.

Welcome to our latest member: Anonymous user