King Aragorn
Sep 28 2009, 02:33 PM
I learned HTML long time ago, and right now i found a way to use it in program development for phones, through Aptana.
Right now i am making a "The Red Button" widget, where i code it in HTML.
But, my problem is that i want to set an image as background.
Is there any way to do that?
It will make the app better then just a white background. (i think i will add a CSS effect i found too..)
All i want to know, plain and simple:
How do you set an image as background in HTML?
Spirit Shield
Sep 28 2009, 02:41 PM
hmmmm, let me think.
<body background="INSERT IMAGE HERE">
Agent F
Sep 28 2009, 03:27 PM
The above is deprecated and xHTML should use the style attribute to the body element.
CODE
<body style="background-image:url('image.png')">
Yippee
Sep 28 2009, 04:42 PM
QUOTE (Agent F @ Sep 28 2009, 04:27 PM)

The above is deprecated and xHTML should use the style attribute to the body element.
CODE
<body style="background-image:url('image.png')">
Better yet, put that right in your CSS file. It's usually best to put all the styling in one spot.