Align images at top of the ImageGallery

3 posts, 1 answers
  1. Amy
    Amy avatar
    105 posts
    Member since:
    Aug 2010

    Posted 05 Jun 2014 Link to this post


    Is it possible to vertically align images so that they appear at the top of the ImageGallery display area?  We have images that vary in height, and would like to have the placement of where the images are displayed to be consistent.  Currently the position of the image shifts depending on which image is being viewed.  I'm assuming the default behaviour of the image gallery is to display the image centered both horizontally and vertically?

  2. Answer
    Viktor Tachev
    Viktor Tachev avatar
    1445 posts

    Posted 10 Jun 2014 Link to this post

    Hello Amy,

    If you would like to have no space above the image in the ImageArea of RadImageGallery you could add a CSS rule that removes the padding above the image. The rule would look similar to the one below:

    .RadImageGallery .rigItemBox .rigActiveImage img {
        padding-top: 0 !important;

    Let me know how this works for you.

    Viktor Tachev

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft R3 2016 release webinar banner
  4. Amy
    Amy avatar
    105 posts
    Member since:
    Aug 2010

    Posted 11 Jun 2014 in reply to Viktor Tachev Link to this post

    Thank you!  That worked perfectly.
Back to Top