Hi,
I'm having some trouble with styling the tabstrip. First, I have a simple tabstrip, with 2 buttons. The code is like this:
<div data-role="footer" id="footer">
<div data-role="tabstrip" id="badges-tabs">
<a href="#destaques" data-icon="favorites" data-badge="0">Destaques</a>
<a href="#ofertas" data-role="button" data-icon="cart" data-badge="0">Ofertas</a>
</div>
</div>
Without any custom CSS, my tabstrip looks like this (please note I'm using flatUI as layout):
<tabstrip1.jpg>
How can I make the tabstrip display the 2 buttons with equal width, and make them fit the tabstrip container ?
I have to manually set dimensions but this is not good for a responsive design.
So I set a background color for the tabstrip, and a background color for the active state property. Also, I set the color to white. My tabstrip looks like this:
<tabstrip2.jpg>
You can see the active state button is a bit outside the tabstrip, and they are aligned on the center, together.
If I change my smartphone to landscape mode, this is what happens:
<tabstrip3.jpg>
I have another problem with CSS on the back button. I copied the back button code from one of the examples on the website:
<a data-role="backbutton" data-align="left" data-icon="back">Voltar</a>
But its not showing the back arrow along with the text. How can I display the back arrow on the back button?
Thanks for the help!
I'm having some trouble with styling the tabstrip. First, I have a simple tabstrip, with 2 buttons. The code is like this:
<div data-role="footer" id="footer">
<div data-role="tabstrip" id="badges-tabs">
<a href="#destaques" data-icon="favorites" data-badge="0">Destaques</a>
<a href="#ofertas" data-role="button" data-icon="cart" data-badge="0">Ofertas</a>
</div>
</div>
Without any custom CSS, my tabstrip looks like this (please note I'm using flatUI as layout):
<tabstrip1.jpg>
How can I make the tabstrip display the 2 buttons with equal width, and make them fit the tabstrip container ?
I have to manually set dimensions but this is not good for a responsive design.
So I set a background color for the tabstrip, and a background color for the active state property. Also, I set the color to white. My tabstrip looks like this:
<tabstrip2.jpg>
You can see the active state button is a bit outside the tabstrip, and they are aligned on the center, together.
If I change my smartphone to landscape mode, this is what happens:
<tabstrip3.jpg>
I have another problem with CSS on the back button. I copied the back button code from one of the examples on the website:
<a data-role="backbutton" data-align="left" data-icon="back">Voltar</a>
But its not showing the back arrow along with the text. How can I display the back arrow on the back button?
Thanks for the help!