Log in

View Full Version : Remove indent from form button



mickeymickeyg
08-24-2006, 11:35 AM
Hi all

Is it possible to remove the indent rom a form button meaning that when a user clicks on a form button the button and text doesnt move downwards?

Thanks
Michael

Twey
08-24-2006, 11:50 AM
Not really, since a lot of browsers use the underlying toolkit to draw form controls, meaning you have no control over them.
Your best bet is to create a mock-up "button" using images and Javascript.

codeexploiter
08-24-2006, 11:56 AM
Are you looking for non-clickable buttons?

You can disable a button from being clicked using the disabled attribute in your <input> tag where you've mentioned about the button. But that will simply disable it will look like a a disabled button unlike a normal button.

If you want you can create a button image and use that image in place of the button and use the disabled attribute along with the button image

<INPUT TYPE="image" SRC="1.png" BORDER="0" disabled>

1.png is a button image here which will give you a non-clickable effect as long as you use disabled attribute and if you want to treat it as a normal button you can remove disabled from the line.

I don't know whether this can be solved using CSS

Hope this is what you are looking for

Regards

Code Exploiter

mickeymickeyg
08-24-2006, 03:23 PM
Thats great guys, thanks for your help!!!