Results 1 to 4 of 4

Thread: Remove indent from form button

  1. #1
    Join Date
    Oct 2005
    Posts
    18
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Remove indent from form button

    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

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Thumbs up

    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

  4. #4
    Join Date
    Oct 2005
    Posts
    18
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thats great guys, thanks for your help!!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •