Doug Black
Posts: 0
Joined: Wed Aug 14, 2013 11:36 am

Back Button Margin

I'd like to add a margin to the Back Button in mobileheader. What name do I use in the Javascript?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Back Button Margin

You could implement this using CSS.

Doug Black
Posts: 0
Joined: Wed Aug 14, 2013 11:36 am

Back Button Margin

That's the plan. Just need to know how I name the back button in the JQuery. I know I have this for another:

Appery('mobileheader').css({'margin':'10px 0px 0px 0px'});

How would I name the back button in this code?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Back Button Margin

Why you don't want to use a simple CSS code?

pre
code
.ui-toolbar-back-btn {
margin:10px 0px 0px 0px!important;
}
/code
/pre

Doug Black
Posts: 0
Joined: Wed Aug 14, 2013 11:36 am

Back Button Margin

That is a much better way, thank you! :)

Sean Doherty
Posts: 0
Joined: Sun Jan 12, 2014 3:47 am

Back Button Margin

I tried a combination of this simple CSS code with another code on the forum to try and make the back button transparent, but it's not working. Could you please help me?

.ui-toolbar-back-btn {
background-color: transparent !important;
border: none !important;
}

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Back Button Margin

Hi Sean,

Your code is fine. And transparency should be applied, but you can not see changes as back button is inside header, that overlays page itself. To see changes you need to change Page background.

Sean Doherty
Posts: 0
Joined: Sun Jan 12, 2014 3:47 am

Back Button Margin

Hi Alena,

Great, thank you for the quick reply and the helpful answer :-)

Return to “Issues”