Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Input[type="image"] won't budge

Tags:

css

input

I tried to make the button go down with margin, padding, top to be on the same level as other input and label, but it won't budge.

html code: see imageenter image description here

   input[type="image"] .button-update-cart{
top:100px;
}

On the form, image is out of the place for example: see this image enter image description here

EDIT

.page-cart .cart-totals .promo-code .field .button-update-cart{
position:relative;
}

.page-cart .cart-totals .promo-code .field input[type="image"]
{
top:100px;

}

it doesnt work :(

Any insight will be appreciated!

like image 681
joe Avatar asked May 12 '26 21:05

joe


1 Answers

You need to give the element position: relative to have the top have any effect.

like image 189
Pekka Avatar answered May 14 '26 12:05

Pekka