문제

In my header of my page I have to put two button side by side. For ref, see the screen shot below. The actual requirement where the buttons are side by side

But after using following code, the icons are over lapping each other. For Ref. see the screen shot below.

<div data-theme="a" data-role="header" data-position="fixed"> <a data-role="button" data-rel="back" data-theme="a" href="#homepage" data-icon="back" data-iconpos="left" class="ui-btn-left"> Back </a>
<h3> Header </h3>
<a data-role="button" href="#homepage" data-icon="home" data-iconpos="notext" class="ui-btn-right home_icon_top"></a> 

One button goes underneath

I am using jQuery Mobile.

도움이 되었습니까?

해결책

.home_icon_top{
    right:50px !important;
}

Adjust the value of the right as your wish.

DEMO

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top