Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8629625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:51:15+00:00 2026-06-12T08:51:15+00:00

I have a right log off button in my header on each page which

  • 0

I have a right log off button in my header on each page which is defined this way:

<div data-role="page" id="displaySchedule" data-title="Display Schedule">
<div data-role="header" data-theme="a">
<a href="#home" data-icon="home" data-iconpos="notext"></a>
<h1>Schedule</h1>
<div class="ui-btn-right">
<a class="logoffButton" data-role="button" id="logoffButton" href="#logout" data-icon="delete" data-iconpos="notext"></a>
</div>
.....

This worked fine in 1.1.1. However, when the page is displayed in 1.2.0-Beta-1, the header looks like the following (notice the X icon is below the horizontal line (by about 1/2 of its height) of the home button and the word Schedule). In 1.1.1, all three were lined up correctly.

enter image description here

Any help is, of course, appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T08:51:16+00:00Added an answer on June 12, 2026 at 8:51 am

    In fact, you shouldn’t include your right button inside a div.

    Have a try:

    <html>
        <head>
            <meta name='viewport' content='minimum-scale=1.0, width=device-width, maximum-scale=1.0, user-scalable=no'/>
    
            <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0-beta.1/jquery.mobile.structure-1.2.0-beta.1.min.css" />
            <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0-beta.1/jquery.mobile-1.2.0-beta.1.min.css" />
            <script src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
            <script src="http://code.jquery.com/mobile/1.2.0-beta.1/jquery.mobile-1.2.0-beta.1.min.js"></script>
    
        </head>
    
        <body>
    
            <div data-role="page" id="displaySchedule" data-title="Display Schedule">
                <div data-role="header" data-theme="a">
    
                    <a href="#home" data-icon="home" data-iconpos="notext"></a>
                    <h1>Schedule</h1>
                    <a class="logoffButton" data-role="button" id="logoffButton"
                        href="#logout" data-icon="delete" data-iconpos="notext"></a>
    
                </div>
            </div>
    
        </body>
    </html>
    

    screenshot


    If you want to add multiple aligned buttons within the header, you can do the following:

    • Include the class class="ui-btn-right" (or class="ui-btn-left") to your button / link <a> for the buttons which will be positioned at the right (left) side of the header title

    • Play with CSS’s margin-right and / or margin-left to separate the different buttons from a same side (right / left); otherwise, the buttons will be stacked together.

    Here’s a simple example including several buttons:

    <html>
        <head>
            <meta name='viewport' content='minimum-scale=1.0, width=device-width, maximum-scale=1.0, user-scalable=no'/>        
    
            <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0-beta.1/jquery.mobile.structure-1.2.0-beta.1.min.css" />
            <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0-beta.1/jquery.mobile-1.2.0-beta.1.min.css" />
            <script src="http://code.jquery.com/jquery-1.8.1.min.js"></script>
            <script src="http://code.jquery.com/mobile/1.2.0-beta.1/jquery.mobile-1.2.0-beta.1.min.js"></script>                        
        </head>
    
        <body>
            <div data-role="page" id="page_1">
                <div data-role="header" data-theme="a">
    
                    <!-- 1st LEFT BUTTON FROM THE LEFT -->
                    <a href="#" data-icon="arrow-l" data-iconpos="notext" 
                        class="ui-btn-left"></a>
    
                    <!-- 2nd LEFT BUTTON FROM THE LEFT -->
                    <a href="#" data-icon="arrow-r" data-iconpos="notext" 
                        class="ui-btn-left" style="margin-left: 30px"></a>
    
                    <!-- HEADER TITLE -->   
                    <h1>hello</h1>
    
                    <!--  1st RIGHT BUTTON FROM THE RIGHT -->
                    <a href="#" data-icon="gear" data-iconpos="notext" 
                        class="ui-btn-right"></a>
    
                    <!--  2nd RIGHT BUTTON FROM THE RIGHT -->
                    <a href="#" data-icon="arrow-r" data-iconpos="notext" 
                        class="ui-btn-right" style="margin-right: 30px;"></a>
    
                    <!--  3rd RIGHT BUTTON FROM THE RIGHT -->
                    <a href="#" data-icon="arrow-l" data-iconpos="notext" 
                        class="ui-btn-right" style="margin-right: 60px;"></a>
    
                </div>
            </div>
        </body>
    </html>
    

    Here’s a screenshot of the example above:

    • In portrait mode:

    portrait mode

    • In landscape mode:

    landscape mode

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is what I have right now for a file residing on the same
I have this right now: <%= f.select :credit, (0..500) %> This will result in
Do I have this right ... // Reactor.h @property(nonatomic, retain) NSMutableArray *reactorCore; // Reactor.m
I have this code right here, where the $friends variable is an array with
Right now I have a Java application running WMI querying event logs, this is
So I'm trying to have a button where users can choose between flash on/off/auto.
I have LOG.d everywhere in my code. When it comes to production/releasing, is this
I have a <td> element like this one: <td class=right editable qty>100</td> I want
I have a site in which logged in users can log battery sales, but
We have an application which starts on a logon page and then navigates to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.