Showing posts with label menu. Show all posts
Showing posts with label menu. Show all posts

22 December 2010

ASP Menu leaving empty space above menu items

Today I was having trouble with an ASP.Net Menu control that kept a bit of empty space above, which made it render too low in the div element it was supposed to stay inside of:
This problem just came out of nowhere, one day my menu is showing as it should, the next day, it is not. I even tried rolling back to the older version of the files, but somehow this didn't change a thing. It might have been an update to Visual Studio 2010, which got automatically installed or something.

After looking into the rendered html with IE8 and its developer tools (press F12 to get these, then CTRL-B to click an element in the page and have its tag selected in the developer tool), I discoverd an a-element above my Menu:
(The div with class Menu is my own div, in it you see the table with class ct100_Menu1_2 which is the actual menu, with 2 a elements around it)