diff -r 913c9751c067 -r 716254ccbcc0 org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-4B7957CA-D6B8-4F8A-8E15-A610D1534D6B.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-4B7957CA-D6B8-4F8A-8E15-A610D1534D6B.html Fri Mar 05 19:11:15 2010 -0800 @@ -0,0 +1,16 @@ + + +
You can set an image as the widget background in a Cascading Style Sheet (CSS) file that you refer to from the widget HTML file.
+For example, the following code adds an image called background.png as the widget background. The image is stored in the gfx
folder in the widget project folder.
html { + height: 100%; + background: rgb(190, 220, 255) url(../gfx/background.png) no-repeat scroll 0% 0%; + font-size: 1em; +} ++
Figure: Widget background file
Figure: Widget with the background