473,397 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Help: Menu bar is 20 pixels too high on IE7


I am building a website for a school, but running into a display problem
between IE and CSS. (The site is http://stmary-stthomas.org/ )

The main horizontal menu bar looks just fine on Mac and PC with most
browsers.

But on the PC with IE7, the menu bar winds up about 20 pixels too high.
The menu is drawn in a DIV with class "navbar", which is inside a DIV
with class "navcontainer":
#navcontainer {
position:absolute;
top:115px; /* This works on most browsers,
but would have to be 135 for IE7 */
}

#navbar {
height: 32px;
padding: 0px 0px 0px 0px;
margin: 0;
position: relative;
z-index: 900;
float: none;
width: 100%;
font: 14px "Lucida, Verdana, sans-serif;
}
Help! Does anyone have any idea of what's wrong, *OR* how I can tweak
this to make the "top" of the menu position come out correctly on IE7?

THANKS!!!!

Kevin Killion
Jun 27 '08 #1
1 2485
In article <ke*************************@newsclstr03.news.prod igy.net>,
Kevin Killion <ke***@shsmedia.comwrote:
I am building a website for a school, but running into a display problem
between IE and CSS. (The site is http://stmary-stthomas.org/ )

The main horizontal menu bar looks just fine on Mac and PC with most
browsers.
....
#navcontainer {
position:absolute;
top:115px; /* This works on most browsers,
but would have to be 135 for IE7 */
>
Help! Does anyone have any idea of what's wrong, *OR* how I can tweak
this to make the "top" of the menu position come out correctly on IE7?
Put this under any stylesheet links that you have in the head

<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="ie7.css">
<![endif]-->

Moreover, make sure you have no inline styles pertaining to this issue
in the body.

And now, make a new text file and call it ie7.css and type in this file:

#navcontainer {
position:absolute;
top:115px; 135px in it.

(I noticed, for the first time ever, that a notice popped up on my
screen saying you have requested I send you an email if I reply. Sorry
Kevin, but I don't talk to strange men so intimately.)

--
dorayme
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sumit | last post by:
Hello, Are there any tools or ready code available to create a help menu including full index text search, etc?? Help will be appreciated. Thanks Sumit
0
by: Dave | last post by:
I'm trying to figure out how to create a simple help menu within my .Net Windows application. I can't find any help in my VB Visual Studio help file ... only thing I find on Internet is tools that...
3
by: Daniel Tan | last post by:
How can i take away the Access 2000 help menu ? Even better then whole default menu. Pls advise. Thanks. Regards, Daniel
0
by: Mg | last post by:
Hi. I would like to do like an Help menu (F1). So, I have a TreeView on the left, and 'a' panel on the right. The TreeNodes have a Tag that permit to store the panels I want to show on the...
0
by: tony | last post by:
Hello! I have installed Visual Studio .NET 2003 but when I use for example index in the Help menu for class Form it display a very small and strange font. It's hardly readable. Does anybody...
4
by: Edward K. Ream | last post by:
Hello all, Creating a 'Help' menu 'by hand' on the Mac does not work, or rather, it creates a *second* Help menu. There are hints about how to do this at:
1
by: gordon | last post by:
Hi I have an app that i have written a chm help file for. What is the best way to associate that with my help menu and the F1 key. I have added the file to the project already, just not sure...
4
by: 73k5blazer | last post by:
Hello again all.. We have a giant application from a giant software vendor that has very poor SQL. It's a PLM CAD application, that makes a call to the db for every cad node in the assembly. So...
0
by: hitencontractor | last post by:
I am working on .NET Version 2003 making an SDI application that calls MS Excel 2003. I added a menu item called "MyApp Help" in the end of the menu bar to show Help-> About. The application...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.