Monaca Onsen UI Discord Chat Github Repo

Extra tall navbar header for OnsenUI/PhoneGap app, with SVG background?

  • I’m building an app using Onsen UI and PhoneGap that requires having an extra tall header on one of the pages, with an SVG background image, but hamburger menu icon would be on top. So needs to be like:

    alt text

    Header image is above the horizontal line, below that it’s just a regular Onsen UI layout with various content (e.g. a list).

    Image does need to be full width as shown and scale to fit whatever device it’s shown on (phone or tablet).

    Is this possible, and if so how? Couldn’t see anything obvious in the docs.


  • Try something like this…

    #bg1 {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%; 
    background-image: url("![bighd.jpg](");)
    <ons-page id="myPage">
    <ons-toolbar style="height: 120px;" id="MainToolbar">
    	<div class="left" id="MainToolbar_leftDiv">
    		<ons-toolbar-button id="bg1" style="color: #ffffff;"><ons-icon icon="fa-bars"></ons-icon></ons-toolbar-button>
    <div id="hiddenspace" style="height: 72px;"><!--Hidden Space to Account for Header Height Increase--!></div>
        <img src="![download_image_onsenui_01.png](") alt="Onsen UI" style="width: 100%">
        <div class="title">
          Awesome framework