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 6870435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:41:00+00:00 2026-05-27T03:41:00+00:00

I have a simple app that I am running on an iPhone (iOS 5),

  • 0

I have a simple app that I am running on an iPhone (iOS 5), which doesn’t properly size and position the back button and the header text. The header text winds up being underneath the button. I guess jQuery Mobile doesn’t size/position things as expected out of the box…

What I am after is that the header text gets truncated and starts to the right of the back button. There won’t be another button to the right of the title, so it is fine if it goes to the right of the page.

    <!DOCTYPE html>
    <html>
        <head>
            <title>Page Title</title>
            <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.css"/>        
            <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
            <script type="text/javascript" src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script>    </head>
        <body>
            <div data-role="page">
                <div data-role="header">
                    <a data-icon="arrow-l" data-rel="back">A long button</a>
                    <h1>A very very very long title</h1>
                </div>

                <div data-role="content">
                    <p>Page content goes here.</p>   
                </div>

                <div data-role="footer">
                    <h4>Page Footer</h4>
                </div>
            </div>
        </body>
    </html>

A runnable example is at: http://jsfiddle.net/5n8WN/

I did look at this answer but what I did try didn’t get me what I wanted.

  • 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-05-27T03:41:01+00:00Added an answer on May 27, 2026 at 3:41 am

    The reason your title is being covered is that there is a 90px margin on the right/left of the H1 tag and your back button is larger than 90px. You can change the CSS rules for the .ui-title class to fix this:

    .ui-title {
        margin     : 0.6em 1em 0.8em 140px !important;
        text-align : left !important;
    }
    

    Here is a jsfiddle: http://jsfiddle.net/jasper/5n8WN/1/

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

Sidebar

Related Questions

I'm now testing GKPeerPickerController. I have a simple app that just have a button
I have a simple iphone app that's based on the CrashLanding sample app. So
I have a very simple iPhone app that requires a random integer from 1-100.
I have a simple MVC2 app that doesn't seem to Redirect correctly. The code
I have an iPhone app that communicates with a server (both of which I
This is a real newbie question. I have simple app that selects a picture
I have a simple app that uses an SQL Express 2005 database. When the
Right so I have a simple app that consists of a calendar a Set
I have a simple PHP app that prints 'hello world'. When I run it
I have a simple GAE app that includes a login/logout link. This app is

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.