J2ME Polish
J2ME Polish 2.4 Documentation
Enough Software

Designing Screen Backgrounds

You can use any background for screens, which fill out the complete screen by default. This includes the title and the menubar areas, which is not desirable in every case. You can, therefore, specify the vertical start and end points in your polish.css file by setting the "top" and "bottom" CSS attributes accordingly:

.mailForm {
	padding: 5;
	padding-left: 5;
	padding-right: 5;
	background {
		type: horizontal-stripes;
		top: title;
		bottom: menubar;
		first-top-color: screenColorTop1;
		first-bottom-color: screenColorBottom1;
		second-top-color: screenColorTop2;
		second-bottom-color: screenColorBottom2;
	}
	layout: horizontal-expand | horizontal-center | top;
}

CSS Attribute  DefaultValuesApplies To  Explanation
background-toptoptop, titlescreen style The top border of the background for this screen. Usually the background reaches from the very top of the screen which includes the title. By setting background-top: title; this background starts after the title.
background-bottombottombottom, menubarscreen style The bottom border of the background for this screen. Usually the background reaches to the very bottom of the screen which includes the menubar. By setting background-bottom: menubar; this background only reaches until the menubar.
back to top