Why is my <asp:Menu> pushing 1 pixel downward???

Posted on 2007-10-05
Last Modified: 2013-12-08
This is driving me crazy!! I have a site that it is imperative that everything lines up correctly and precisely in all browers, etc, etc.........For the life of me, I  can't figure out why a simple "drag-and-drop" 2.0 menu object is  pushing downward 1 pixel. The original menu (and pages and css and all the other stuff) was much more complicated  but I've gotten rid of all stylesheets, played around with basic positioning, done everything I can possibly think of to get rid or that little 1px push. I've posted the sample pages to another, external server, I drank a quart of scotch, I just can't figure out why the <asp:menu> wants to push downward 1px. I've gone thru all the (otherwise useless) inline styles offered via Visual Web Developer Express and Visual Studio and I can't find why this is happening............ugh.....

I"m testing (for now) in IE 7.0 where the problem is showing. Everything is perfect in Mozilla/Firefox but I still get this problem in IE.

I realize that this will be a difficult question for anyone responding unless you have magically seen and fixed the problem. ...But come on, toss out the questions and help me figure this out before this comp has to be delivered on Monday. I'll toss in 500 points for anyone that can even give me some suggestions!!!

Many thanx,
Question by:swerver69
    LVL 14

    Accepted Solution

    try setting this on the menu, seems to get rid of some of the markup that is causing the extra spacing...


    Author Comment

    you gotta be kidding me............:))

    I have like 800 different pages open currently and more that photoshop documents open currently peering for that 1px push. Ugh......I should have asked this question a half a day ago.........

    Your solution worked in both IE and Mozilla/Firefox. And for that I thank you very much. Of course, there is a lot of complicated CSS to get things to work properly but you got rid of my 1px push.

    Many, many thanx. You get the points and the glory........:))


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
    I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
    In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
    In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now