I'm developing a footer
in JQuery that I went through for this FIDDLE
HTML / JQuery
<div data-role="footer" data-position="fixed" data-theme="c" data-tap-toogle="false">
<div data-role="navbar" data-grid="b">
<ul>
<li><button type="button" id="listSO_options">Opções</button></li>
<li><a class = "ui-btn-active nav" href="#">menu</a></li>
<li><a class = "nav" href="#" id="listSO_btnDef" data-icon="gear">Definições</a></li>
</ul>
</div>
</div><!-- footer -->
As you can see in the result area, the first element of footer
which is a button
gets a size relative to the two other elements smaller.
I've tried the button inside <a></a>
tags, but it has further ruined footer
.
I was trying to do this without resorting to CSS and without assigning fixed height values. Is it possible?
UPDATE
I tried to change the button to the one as they suggested. Here's the FIDDLE
HTML / JQuery
<div data-role="footer" data-position="fixed" data-theme="c" data-tap-toogle="false">
<div data-role="navbar" data-grid="b">
<ul>
<li><a id="listSO_options">Opções</a></li>
<li><a class = "ui-btn-active nav" href="#">menu</a></li>
<li><a class = "nav" href="#" id="listSO_btnDef" data-icon="gear">Definições</a></li>
</ul>
</div>
</div><!-- footer -->
The problem is that now this element no longer behaves like a button, because when it is clicked this remains selected the second element is no longer. The goal of using button
instead of a
was really that. Leave the second element selected despite pressing the first one and activate the features of the first