How to right align a button in a listview item

2 posts, 0 answers
  1. Alex
    Alex avatar
    54 posts
    Member since:
    Feb 2009

    Posted 08 May 2014 Link to this post

    I have a button inside a listview item, and I do not want it to occupy the whole width of the item. I want to fix the width and right align the button.
    I have tried using data-align="right" but that does not help, the button remains left aligned

    Here is my code

       <li><a data-role="button" data-rel="modalview" href="#modalview-loanamount" id="modalview-open-button">Help</a></li>
    <style scoped>
        #modalview-open-button {
  2. Kiril Nikolov
    Kiril Nikolov avatar
    2596 posts

    Posted 09 May 2014 Link to this post

    Hello Aleksandar,

    You can just float the buttons to the right like this:

    Kiril Nikolov
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top