Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Button Size??

  1. #1
    New Coder
    Join Date
    Sep 2005
    Location
    Illinois
    Posts
    39
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Button Size??

    OK heres an easy one for you guys. How do i make a button a really large size
    I tried.

    <input type="button" size="100">

    but it didnt work. So thanks for you help!
    Adam

  • #2
    Regular Coder Lerura's Avatar
    Join Date
    Aug 2005
    Location
    Denmark
    Posts
    946
    Thanks
    0
    Thanked 129 Times in 128 Posts
    you can set width="" and height="", but that only works for netscape-based browsers

    But you can imitate a button by an image:

    create an image that looks like the button you want and then add onClick="" to the image

  • #3
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts
    You can style it with css:
    Code:
    <html>
    <head>
    <style type="text/css">
    #b
    {
    	height: 200px;
    	width: 200px;
    	background-color: white;
    	color: red;
    	font-size: 22px;
    }
    </style>
    </head>
    <body>
    <form>
    <input type="button" value="button" id="b">
    </form>
    </body>
    </html>
    Good luck

  • #4
    Regular Coder
    Join Date
    Oct 2003
    Location
    on a ship
    Posts
    574
    Thanks
    1
    Thanked 6 Times in 5 Posts
    you can also try using this:
    <button><table><tr><td height=400 width=400>your content or image</td></tr></table></button>");
    <button><table width=400 height=400></table></button>

    this is not a form object ( <input> )

    it is just a button, and it will get as big as it needs to be in-order to dispaly what is between the starting tag and end tag.
    Last edited by brandonH; 10-21-2005 at 01:51 AM.
    I make no attempt at pretending like I'm a professional. I offer help with what knowledge I do have.


  •  

    Posting Permissions

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