ToonMariner Posted April 16, 2007 Share Posted April 16, 2007 Hi all, Just a quickie. Wondering if anyone knew of anyway to hide the text of a submit button. I have a background image for this button. For design purposes I need to ensure the value attribute of the button is not dsiplayed but when css is turned off (or not available) the text should be visible on screen. Any help would be very much appreciated. Quote Link to comment Share on other sites More sharing options...
obsidian Posted April 16, 2007 Share Posted April 16, 2007 Have you tried using the image type of input? <input type="image" src="myImage.jpg" /> This will act as a submit button as well. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted April 16, 2007 Author Share Posted April 16, 2007 Yeah and ist crap in safari/camino on the MAC - they just display a MAC glass button (no matter what image you use) with no text on it! Quote Link to comment Share on other sites More sharing options...
Copyright Posted April 16, 2007 Share Posted April 16, 2007 Did you tried: value="" or onload="this.value='' " Later. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted April 17, 2007 Author Share Posted April 17, 2007 Trying to keep it accessible - so want this to show up if css is off and don't want javascript to really have anything to do with it. I may have to retreat on the js though... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.