As a workaround you can style the button with cssclass and make the text color the same as the background color to hide the text, then have an external label.
Post by carlgundel on Jan 10, 2008 16:54:56 GMT -5
mikeukmid said:
As a workaround you can style the button with cssclass and make the text color the same as the background color to hide the text, then have an external label.
I wonder if there's a way to substitute an image for the button using CSS.
You can certainly put an image on the button (which could contain the desired text) and use padding-left to move the unwanted text off the button. Will add something like that to the wiki tomorrow. I think you can replace the button with a text-only link or an image but with CSS doubtful.
Post by ekvirtanen on Jan 10, 2008 22:55:21 GMT -5
Hi folks and thanks for the replies.
What i wish is that i could change the "Accept" from the program code. Or, load .css from certain location to be used with the code. This way, same .css would be for all the users, no matter where is runs the code. By using HTML instead of INPUT it should work.
What i wish is that i could change the "Accept" from the program code. Or, load .css from certain location to be used with the code. This way, same .css would be for all the users, no matter where is runs the code. By using HTML instead of INPUT it should work.
I have put up a demo on the wiki to put an image on the input button as a way replacing the standard text.
Does an external style sheet not work? I have not tried it yet. HTML Input does work, but defeats the object of using native objects. By that method I'm sure you know you can assign a class and change the text.
I guess Carl will introduce '#handle CSSCLASS() - Set the CSS class tag' for radiobuttons, checkboxes, input objects in later releases of RB.
Mike.
Last Edit: Jan 11, 2008 6:18:04 GMT -5 by ekvirtanen