Help - Search - Members - Calendar
Full Version: Html Help
Sal's RuneScape Forum > Everything... Not RuneScape > Tech Talk > Programming & Web Development
King Aragorn
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
hmmmm, let me think.

<body background="INSERT IMAGE HERE">

Agent F
The above is deprecated and xHTML should use the style attribute to the body element.
CODE
<body style="background-image:url('image.png')">
Yippee
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.