beefwellington
21 Apr 2011, 5:32 AM
So I have a menu of about 6 buttons on it. I'd like to have a logo/banner above the buttons but sencha touch likes to add them after the buttons.
I've been playing with CSS by using "position: absolute" but I'm wondering if there's an easier way to do it (plus my image overlaps some of the buttons on the menu if I do it this way). I've listed the code for my panel below.
var pnlMainMenu = new Ext.Panel({
id: 'pnlMainMenu',
title: 'Main Menu',
fullscreen: true,
styleHtmlContent: true,
scroll: 'vertical',
html: '<img src="images/banner_ds.jpg" class="imgBanner" />',
items: btnsMainMenu_CS,
iconCls: 'info',
cls: 'pnlMainMenu'
});
Is there an easier way to move the image from the bottom of the buttons to the top with the Sencha Touch code or CSS?
I've been playing with CSS by using "position: absolute" but I'm wondering if there's an easier way to do it (plus my image overlaps some of the buttons on the menu if I do it this way). I've listed the code for my panel below.
var pnlMainMenu = new Ext.Panel({
id: 'pnlMainMenu',
title: 'Main Menu',
fullscreen: true,
styleHtmlContent: true,
scroll: 'vertical',
html: '<img src="images/banner_ds.jpg" class="imgBanner" />',
items: btnsMainMenu_CS,
iconCls: 'info',
cls: 'pnlMainMenu'
});
Is there an easier way to move the image from the bottom of the buttons to the top with the Sencha Touch code or CSS?