dazz_club Posted September 11, 2008 Share Posted September 11, 2008 Hi guys Is there a way of turning a form button such as submit into an image without using ....type="image" src="../button.jpg" > and <button><img src="..."></button>cheersDarren Link to comment Share on other sites More sharing options...
Kingy Posted September 11, 2008 Share Posted September 11, 2008 Can I just ask, do you want multiple form buttons to change into the same image or something?Is there any reason why you want an alternative way around this? http://www.456bereastreet.com/archive/2007...ttons_with_css/ Link to comment Share on other sites More sharing options...
dazz_club Posted September 11, 2008 Author Share Posted September 11, 2008 Hi KingyI originally thought using <input...type="image" src="../button.jpg" > as a way swapping the default button design as an image was a no no by way of accessibilty and standards.but have just visted w3c regarding this subject and they recommend simply inserting an alt tag.I would only like one button to be an image.cheersDazzclub Link to comment Share on other sites More sharing options...
Synook Posted September 11, 2008 Share Posted September 11, 2008 <input type="image" /> is fine, as long as alternate content is provided - this goes the same for all graphic content. Link to comment Share on other sites More sharing options...
dazz_club Posted September 11, 2008 Author Share Posted September 11, 2008 Thanks Synook for the confirmation! Link to comment Share on other sites More sharing options...
rzea Posted September 11, 2008 Share Posted September 11, 2008 Offtopic:I prefer to use the <button> tag, I find it a lot easier to work with and manipulate while providing the exact same function as any regular <input>. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.