Re: First stupid post of the year.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nathan Nobbe wrote:
> On Jan 2, 2008 1:55 PM, tedd <tedd@xxxxxxxxxxxx> wrote:
> 
>> At 1:46 PM -0500 1/2/08, Nathan Nobbe wrote:
>>> On Jan 2, 2008 1:34 PM, tedd
>>> <<mailto:tedd@xxxxxxxxxxxx>tedd@xxxxxxxxxxxx> wrote:
>>>
>>>
>>> &nbsp; &nbsp; &nbsp; &nbsp;A&nbsp; &nbsp; &nbsp; &nbsp;
>>>
>>> (it's there to make a submit button wider)
>>>
>>>
>>> why dont you just style the button w/ css?
>>>
>>> style="width:200px"
>>>
>>> -nathan
>>
>> -nathan:
>>
>> Have you tried that?
>>
>> I have, and it don't work.
>>
>> I can create wider <button>whatever</button> but I cannot create a
>> wider <input type="submit" value="A"> submit button.
> 
> 
> it appears to work for me  using firefox:
> 
> <html>
> <head>
> <title>
> </title>
> </head>
> <body>
> <form>
> <input type="submit" style="width:250px" value="Submit">
> <form>
> </body>
> </html>
> 
> -nathan
> 

I prefer this approach instead.

<html>
<head>
<title></title>
	<style>
	button,
	input[type=submit],
	input[type=reset],
	input[type=button] {
		width:	250px;
	}
	</style>
</head>
<body>
<form>
	<input type="submit" value="Submit">
<form>
</body>
</html>


This way, you hit all your buttons with one style tag.

-- 
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux