Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make thumb in li to be aligned in center #7

Open
rkononov opened this issue Sep 8, 2015 · 0 comments
Open

How to make thumb in li to be aligned in center #7

rkononov opened this issue Sep 8, 2015 · 0 comments

Comments

@rkononov
Copy link

rkononov commented Sep 8, 2015

Hello i've added thumbs into li and found that they aligned at top right corner (if resolution >960px)

Any idea how i could make them aligned to center on high resolution(when list became buttons as in attach) and work as is on smaller resolution (simple list)

image

sample code:

<div data-role="page" class="my-page" data-theme="b" id="main_page">
  <div data-role="header">
    <h1 style="display: none"><%= t('views.mobile.index.caption') %></h1>
    <label for="searchbar" class="ui-hidden-accessible"><%= t('views.mobile.index.caption') %></label>
    <input type="search" name="searchbar" id="search_input" placeholder="<%= t('views.mobile.index.caption') %>" value="" data-mini="true" />
  </div>
  <div role="main" class="ui-content">
    <ul data-role="listview" data-inset="true">
      <li><a href="#filter_page">
        <!--<img src="/assets/notebook-icon.png" class="ui-li-thumb">-->
        <img src="/assets/80/shop-80.png" class="ui-li-thumb">
        <h2><%= t('views.mobile.index.firms') %></h2>
      </a></li>
      <li><a href="#map_page">
        <!--<img src="/assets/globe-icon.png" class="ui-li-thumb"> -->
        <img src="/assets/80/map-80.png" class="ui-li-thumb">
        <h2><%= t('views.mobile.index.map') %></h2>
      </a></li>
      <li><a href="#routing_page">
        <!--<img src="/assets/routing-icon.png" class="ui-li-thumb"> -->
        <img src="/assets/80/waypoint-map-80.png" class="ui-li-thumb">
        <h2><%= t('views.mobile.index.routing') %></h2>
      </a></li>
      <li><a href="#" id="favorite_link">
        <!--<img src="/assets/star-icon.png" class="ui-li-thumb"> -->
        <img src="/assets/80/like-80.png" class="ui-li-thumb">
        <h2><%= t('views.mobile.index.bookmark') %></h2>
      </a></li>
    </ul>
  </div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant