On Nov 10, 2006, at 2:30 PM, Stephan Wehner wrote:

> <button type="submit" class="submit" alt="Login">LOGIN</button>
> works ok. Although I can't control Internet Explorer stretching the
> background image.
>
> Firefox / Safari look better.
>
> Thanks all !
>
> Stephan


Hi Stephan, I remember first time I used <button type></button> for  
submit button by placing the image as background, it resulted the  
same problem you have. So I changed it to this instead and it works  
for ALL browsers:

.submit {
        width 62px  /*width for you actual button*/
        height: 25px; /*height for you actual button*/
        border: none;
        }

p.s. HTML validator will warn you if width and height attributes are  
declared in the <input>, so to prevent the image button being  
stretched in some browser,actual attributes for width and height in  
the css are needed!

and the markup
<input type="image" src="login.png" alt="ready to login"
class="submit"  value="" />



regards,

tee

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to