Looking at the code snippet below:
<a name="top"></a>
<div class="topbar">
<img src="banner.jpg" alt="The Group Company" width="100%" />
<div class="printOnly">
<center><b>Printed from www.company.com</b></center>
</div>
</div>
The use of a named anchor (<a name="top"></a>
) seems to be causing a line break before the topbar div. Is there a way to avoid this? It's important in this case that the named anchor is placed above the div with the banner image.
I've attempted using CSS to set the height of the anchor to 0px and the display property to none, but this results in the anchor losing its functionality (i.e., linking to #top from other parts of the page stops working).
Is there a solution to this issue?