css - How to get a jQuery Mobile full-width horizontal controlgroup? -


i have horizontal controlgroup 2 buttons: right 1 icon-only button standard fixed width whereby first 1 shall elastic , fill remaining width. i'm aware similar question has been asked before, tried different solutions , none seems work me, or aren't working jqm 1.4.5:

  • i can't put second button before first 1 in markup because jqm first-child , last-child styling break
  • i can't set width percentage (as seen in many examples) because icon-only button has fixed width of 1.5em
  • the controlgroup should not break @ smaller window sizes, shall in 1 row, first button ellipsis text

is there way controlgroup has 1 (or more one) icon-only button on right side, fit 100% of parent div width?

<!doctype html>  <html>    <head>    <meta charset="utf-8">    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">    <link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.css">    <script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>    <script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>  </head>    <body>    <div data-role="page" id="page-one">      <div data-role="content">        <fieldset id="a-grp" data-role="controlgroup" data-type="horizontal">          <a href="#" id="a-btn" class="ui-btn ui-btn-inline">anchor button</a>          <a href="#" id="b-btn" class="ui-btn ui-icon-delete ui-btn-icon-notext ui-corner-all">delete</a>        </fieldset>      </div>    </div>  </body>    </html>


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -