HTML dynamic tags insert looks different compared to static layout
- by Andrew Florko
I program HTML interface with jquery.
There is editable list of publications on the page and user can click any publication to edit details. Popup window appears with data and there is list of authors embedded into details form. There are edit/delete buttons against every of them + "add new author" button.
User manipulates authors without page reload. When I insert a new author there are new edit/delete buttons created dynamically & embedded into page.
I insert tags like this:
<td class="author-actions">
<img onclick='edit(id)' .../>
<img onclick='delete(id)' .../>
</td>
Just the same html-layout that is sent from web-server when popup window appears.
But somehow it looks different. There is extraspace between images though firebug demonstrates the same css attributes applied.
If I select with mouse inserted layout with IE, somehow it can reorder and become the same-looklike as the those, send by web-server.
What can it be?