?
Solved

Jquery Mobile Header Height  Adjustment

Posted on 2013-01-01
2
Medium Priority
?
1,692 Views
Last Modified: 2013-01-02
I'm trying to understand how to adjust the height of the header bar which holds the Menu button on my test site - http://test2.dfigdesign.com.  Do I override the .ui-bar-b element to do so, and what is the CSS needed for this, please?  I would like to reduce the size of the header bar by at least 50%.
0
Comment
Question by:danfiggolf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
HagayMandel earned 2000 total points
ID: 38735702
Your header div already holds some styling:

<div data-role="header" style="bottom: 0px; data-position=;" inline"="" data-theme="b" class="ui-header ui-bar-b" role="banner">

Open in new window


Simply add the required height here:

<div data-role="header" style="bottom: 0px; data-position=; height:50px;" inline"="" data-theme="b" class="ui-header ui-bar-b" role="banner">

Open in new window

0
 
LVL 11

Expert Comment

by:mcnute
ID: 38736123
Even better practice though is to apply your height style in the jquery-mobile css file for the class ui-header. This makes your code more easy to maintain.
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question