J2ME Polish
J2ME Polish 2.4 Documentation
Enough Software

Vertical-Gradient Background

Design

The vertical-gradient background paints a linear, vertical gradient.

.myItem {
	background {
	type: vertical-gradient;
	top-color: red;
	bottom-color: black;
	start: 0%;
	end: 100%;
	}
}

CSS attributes:

CSS Attribute  DefaultValuesExplanation
typevertical-gradient- Set the type to vertical-gradient.
top-colorwhitecolor definition The color of the background at the top, can be a rbg/hexadecimal value of the color or the name of the color as defined in the colors section.
bottom-colorbluecolor definition The color of the background at the bottom, can be a rbg/hexadecimal value of the color or the name of the color as defined in the colors section.
start0%percent or pixel value The desired start point of the gradient. Until the start the defined top-color will be painted:
	background-start: 20%;
end100%percent or pixel value The desired end point of the gradient. From the end row onwards the defined bottom-color will be painted:
	background-bottom: 70%;
strokesolidsolid, dotted The stroke style of the gradient.

JavaDoc

GradientVerticalBackground.

back to top