Hello Richard,
You could do with with css just do:
<div id="mydiv">
<img id="myimg" src="blah.. />
<cfinput ... />
</div
then in head or stylesheet of presentation page
<style>
div#mydiv {position: relative}
img#myimg {position: absolute; top 5px; left 75px;}
</style>
Obviously amend top, left to suit. I haven't tested, but you may have an
issue with what is on top the image or the button. If you have an issue try
adding z-index:10. You would have to verify you happy with the results
x-browser.
Whilst possible this not a good way to go about things!
I would suggest a better approach is simply to create your button graphic
with the appopriate image in it already as this is much more standards
compliant.
Placing an image on top of a button is likely to affect clicking of the
button if the image obscures a large part of the button. The way around this
would be to assign an event handler to the onclick event of the image, but
this is a whole load of work when you could simple create the button with
the appropriate image in it already!!
Thanks,
Matt
-----Original Message-----
From: Richard White [mailto:[EMAIL PROTECTED]
Sent: 26 October 2007 14:39
To: CF-Talk
Subject: cfinput button image
Hi,
just wondering if it is possible if i can have a cfinput of type button and
then place a small image in the button instead of text.
i have tried the cfinput type image but of course it only shows the image
and not the appearance of the button with an image in it
thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292124
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4