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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Submit background image in xp 1

Status
Not open for further replies.

MattJames

Programmer
May 19, 2004
8
GB
If have an image used as the background of some submit buttons. This works fine unless the user is viewing the web page under the xp default desktop theme, it just does not appear.

This is the style code I am inserting into the form element.

STYLE="font-size:0;width:30;height:30;background-image:url('/Images/New.gif');background-repeat:no-repeat;background-position:center center;"

Is there any way round this problem?

Thanks.
 
The following works for me under XP:
Code:
<style>
button.image1 {
    background-image: url(imagename.gif);
    background-repeat: no-repeat;
    background-color: transparent;
    height: 50px;
    width: 100px;
}
</style>

<button type="submit" class="image1">Submit</button>

Hope this helps.

Pete.

Web Developer & Aptrix / IBM Lotus Workplace Web Content Management (LWWCM) Specialist
w: e: Pete.Raleigh(at)lclimited.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top