I have a toggle link to show or hide a table. This is the code for the link. When this is shown there is no blank line between the link and the table underneath
<a id='togglelink' name='togglelink' href='javascript:ToggleTable();' title='Show Inactive EDB Appointments' >
<p style='text-align:center'>Show Inactive EDB Appointments
</a>
When the link is clicked a table is shows and I change the link text
link.innerHTML = "<P style='TEXT-ALIGN: center'>Hide Inactive EDB Appointments";
After this code is executed a blank line appears between the link and the table underneath
` tag.
– putvande Jun 25 '15 at 14:48` ? That's all I can see wrong since you didn't post all of the javascript
– Spencer May Jun 25 '15 at 14:48` tag guys.](http://stackoverflow.com/questions/8460993/p-end-tag-p-is-not-needed-in-html)
– Jun 25 '15 at 14:49` inside inline `` is a really bad practice, also, your `
– Magicprog.fr Jun 25 '15 at 14:50` tag is never closed, then inline css shoul be avoided as soon as possible
tag. Also, using href="javascript: [js code] " does not work in some browsers. It's better to use an onclick attribute.
– sqsinger Jun 25 '15 at 14:51