sanity
sanity

Reputation: 35772

How do I make a JQuery Mobile header wrap, and left-justified?

The text in my JQuery Mobile headers is often too long to fit on an iPhone screen, which means that the text is truncated, and a button on the right of the header overlaps the text.

Is there any way that I can:

Upvotes: 4

Views: 3620

Answers (1)

Jacob
Jacob

Reputation: 3639

It looks like the style that handles the ellipsis and wrapping is this:

.ui-header .ui-title, .ui-footer .ui-title {
    text-overflow: ellipsis;
    white-space: nowrap;
}

Try overriding that in your own style:

.ui-header .ui-title, .ui-footer .ui-title {
    text-overflow: clip;
    white-space: normal;
}

Upvotes: 4

Related Questions