Good all the time.
My javascript adds a row in the table in which a button is added (as an image ):
<td><input name='save' type='submit' class='btn_save'></td> Which I try to describe in css:
.btn_save {height: 50px; width: 70px; margin: 0; padding:0; border: 0; background: transparent url('save.png') no-repeat center top; text-indent: -1000em; cursor: pointer; cursor: hand; } Immediately I will say that such a design spied on the site .
But for some reason, in my browsers, something incomprehensible happens with the button size (for example, when I opened the mode ("opera drgonfly") in opera, I saw that this is the height of the original submit button that cuts the image, and in dreamweaver - everything is normal, but the text of the “submit” button lies on the milestones of my image, i.e. In all the browser, I have some kind of garbage.
Where is the dog buried here?
PS If I describe it in html, then everything is fine:
<?=Form::image( 'submit', 'picture', array('src' => 'media/Img/save.png', 'onmouseover' => 'this.src=\'/media/Img/save_click.png\';', 'onmouseout' => 'this.src=\'/media/Img/save.png\';', ) )?>