How to centre tiles

3 posts, 0 answers
  1. Al
    Al avatar
    203 posts
    Member since:
    Oct 2006

    Posted 28 Jun Link to this post

    Hi,

    I have 4 icon tiles that are shape=wide set to TileRows=2. How do I centre these on the screen (left-right)?

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 29 Jun Link to this post

    Hi Al,

    RadTileList is designed to let the user scroll the tiles left and right (depending on its Width and the number of tiles, of course).

    So, you can set its Width to match the number of tiles and center the <div> that holds the TileList (this div should also have the proper width).

    Or, you can use standalone tiles and center them (or their container) as if you would center any other element: http://demos.telerik.com/aspnet-ajax/tilelist/examples/standalonetiles/defaultcs.aspx.

    Regards,

    Marin Bratanov
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Al
    Al avatar
    203 posts
    Member since:
    Oct 2006

    Posted 29 Jun in reply to Marin Bratanov Link to this post

    Thanks Marin, I got it centered using:

    .divTileContainer
    {
        margin: 0 auto;
        width: 750px;
    }

     

    and the fiddling the width RadTileList Widht and TileROws properties + the RadIconTile Shape and Width properties

Back to Top