Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form-can i add a background picture ? 1

Status
Not open for further replies.

tempo1

Programmer
Feb 20, 2007
118
hi everyone,
i add a form to my page but i dont want it to have a flat white appearance. i'd like to add to the <form> label a backgroun picture something like:<code>
<form bachground="mypic.jpg">
thanks.
 
Hi

Yes, you can, but not that way. The [tt]form[/tt] tag has not "bachground" attribute. And even if you would ask "bac[red]k[/red]ground", no, no such attribute. Instead of guessing is much more efficient to read about the [tt]form[/tt] tag.

Anyway, you can do it with CSS :
Code:
<form style="background-image:url(mypic.jpg)">
Even if it works in Mozillas, Opera, Safari an Explorer, I would not do that. I would put the [tt]form[/tt] in a [tt]div[/tt] or other container and would set the style for that.

Feherke.
 
Hi,
I did search in the FAQ and elsewhere but couldnt find about background to a form.
If only css code is the way, so be it.
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top