Asi by bylo jednodušší to udělat jako: <img src="obrazek.gif" alt="" style="margin-left/right: xyz px;">