Results 1 to 6 of 6

Thread: Setting the width of buttons

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Smile

    Hi,

    I've been trying for a long time to set the width of a button but haven't been able to. At the moment, if I would like to make a button bigger than it is by default, I would put spaces at the front and end of the button’s value (name). Is there a more professional way to set the width of a button than the way that I use? Thanks
    rino_2
    Visual Basic, HTML
    Please Visit my Site: Richard's VB Site

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655

    Thumbs up

    You can use the following...

    Code:
    <form>
    <input type="button" value="Hello World!"><br>
    <input type="button" value="Hello World!" width=300>
    </form>
    ...however it only works in Netscape 4.x (Possibly IE 5.x but I haven't tested it, I know it doesn't work in IE 4)
    www.RealisticGraphics.net

    Running VS.Net Enterprise & VB 6

    Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML

    MSN Messenger: kmsheff

  3. #3
    Junior Member
    Join Date
    May 2000
    Posts
    28
    In IE you can use the <button></button> tags. They support all the same properties as other block level elements. For example:
    Code:
    <button background="some.gif" width="200" height="100"></button>

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Angry Annoying!

    They should keep all the tags the same for Netscape and IE! This is really annoying making sure that it will work on both browsers.
    rino_2
    Visual Basic, HTML
    Please Visit my Site: Richard's VB Site

  5. #5
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554

    Wink IE is Standard

    I agree with Billyo


    In IE you can use the <button></button> tags. They support all the same properties as other block level elements. For example:


    Code:
    <button background="some.gif" width="200" Height="100"></button>
    If same as the rest then it's the standard.

    DocZaf
    {;->

    so netscape is erm.......not the standard?
    --------------------------------------------------------------------------------


  6. #6
    Junior Member
    Join Date
    May 2000
    Posts
    28
    I wouldn't go so far as to say that IE is the standard... but it definitely supports more features and in a more consistent manner than netscape.

    [Edited by billyo on 07-06-2000 at 01:12 PM]

Posting Permissions

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



Click Here to Expand Forum to Full Width