My problem is that:
when using data-theme="b", only the part that contain content is colored in blue. The empty part of the page , is showing a grey gap.
I was trying many tweak with:
1. CSS 'min-height' property (style="min-height:100% !important;") with the page div, and each of its sub divs.
2. Javascript solutions I found on the web....
3. Setting the header & footer with
data-fullscreen="true" data-position="fixed" .
But none helped - the grey gap remains.
<div data-role="page"
data-theme="a"
data-content-theme="a" >
I believe that the JQM framework should have a very simple solution for this issue, because filling the whole page is a very common requirement. I really hope that there is such solution that I wasn't aware of...
Attached below is my page's HTML code:
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <script type="text/javascript" charset="utf-8" src="cordova-1.9.0.js"></script>
- <script src="js/jquery.min.1.7.1.js" type="text/javascript"></script>
- <link rel="stylesheet" href="CSS/jqm-docs.css"/>
-
- <script src="js/jquery.mobile.1.2.test.js"></script>
- <link rel="stylesheet" href="CSS/jquery.mobile.1.2.test.css"/>
- </head>
- <body>
- <div id="login" data-role="page" data-theme="b" data-content-theme="b">
- <div data-role="content" >
- <div class="content-primary">
-
-
- <ul data-role="listview">
- <li data-role="fieldcontain">
- <div id="popupLogin" class="ui-corner-all">
- <div style="padding:10px 20px;">
- <h1 style="margin:20px;">Please sign in:</h1>
- <div style="margin:20px;">
- <label for="un" class="ui-hidden-accessible">Username:</label>
- <input style="padding:10px 20px;" type="text" name="user" id="username" value="" placeholder="username" data-theme="b" />
- </div>
-
- <div style="margin:20px;">
- <label for="pw" class="ui-hidden-accessible">Password:</label>
- <input style="padding:10px 20px;" type="password" name="pw" id="password" value="" placeholder="password" data-theme="b" />
- </div>
- <div style="margin:20px;">
- <button id="login_button" data-theme="b">Sign in</button>
- </div>
- </div>
- </div>
- </li>
- </ul>
-
-
- </div><!--/content-primary -->
- </div><!-- /content -->
- </div><!-- /page -->
- </body>
- </html>
At this point, I am willing to use any solution, even if it means setting the background to a fixed color (#396B9E). Which by the way, I also didn't manage to do, the JQM framework always get in the way.
These are the syle settings I've tried:
- .ui-page { background: #396B9E;}
-
- .ui-body-b, .ui-overlay-b {
- background: -moz-linear-gradient(#396B9E, #396B9E) repeat scroll 0 0 #396B9E !important;
- color: #396B9E;
- background-color: #396B9E;
-
- background-image: -webkit-gradient(linear, left top, left bottom, from( #DDD /*{b-body-background-start}*/), to( #CCC /*{b-body-background-end}*/));
- background-image: -webkit-linear-gradient( #396B9E/*{b-body-background-start}*/, #396B9E/*{b-body-background-end}*/);
- background-image: -moz-linear-gradient( #396B9E/*{b-body-background-start}*/, #396B9E /*{b-body-background-end}*/);
- background-image: -ms-linear-gradient( #396B9E/*{b-body-background-start}*/, #396B9E /*{b-body-background-end}*/);
- background-image: -o-linear-gradient( #396B9E/*{b-body-background-start}*/, #396B9E /*{b-body-background-end}*/);
- background-image: linear-gradient( #396B9E/*{b-body-background-start}*/, #396B9E /*{b-body-background-enend}*/);
- }
I will appreciate any help...
Regards,
Roei.