How to transfer an image to a couple of pixels?

http://jsfiddle.net/sWceL/

I am trying to horizontally center the gif loader next to the button. The only way I can figure out how to do this is to float the gif and move it around. Is there a better way?

In my example, the bootloader on the left is what I want, without a float, if possible.

+4
source share
2 answers

Do you want to use vertical-align: middle; without float: left .

Note that you will need to reorder the elements in the HTML if you want to put the gif on the left side of the button.

Here's a working fiddle .

+6
source

Check this:

http://jsfiddle.net/sWceL/3/

Note: leave one bootloader that you need.

0
source

All Articles