PDA

Click to See Complete Forum and Search --> : Setting the width of buttons


rino_2
Jun 30th, 2000, 02:29 PM
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

RealisticGraphics
Jul 3rd, 2000, 06:23 PM
You can use the following...


<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)

billyo
Jul 5th, 2000, 02:40 PM
In IE you can use the <button></button> tags. They support all the same properties as other block level elements. For example:
<button background="some.gif" width="200" height="100"></button>

rino_2
Jul 5th, 2000, 04:20 PM
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.

Zaf Khan
Jul 5th, 2000, 08:13 PM
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:



<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?
--------------------------------------------------------------------------------

billyo
Jul 5th, 2000, 08:20 PM
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]