472,951 Members | 2,487 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

navbar, very odd!

I made a navbar where the buttons light up when the user moves over
them. The only problem was in IE the buttons only light up when
hovering over the text.
This was not a problem in opera!
HOWEVER!
When I positioned my navbar directly at the top of the page it works
fine even in IE!
Moving the navbar down about double the height of the font being used
and then it stops working only highling the buttons when over the
text, weird no?

Here is the code, this works now in IE but if you change the top
offset of sitenav to more than double the font size the buttons no
longer light up properly, try it and see for yourself!!!

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<style type="text/css">
div#sitenav{
position: absolute;
top: 0px;
left: 0;
width: 12.5%;
font-size: 15px;
background-color:white;
border: 1px solid black;
}
div#sitenav a{
display: block;
padding: 4px 8px;
margin: 0;
text-decoration: none;
text-align: right;
border-top: 1px solid gray;
}
div#sitenav a:hover {
background: #fb9;
}
div#sitenav h4{
background: rgb(33%,33%,33%);
color: white;
text-align: center;
margin: 0;
padding: 0.25em 0 0.125em 0;
}
</style>
</head>

<body>
<div id="sitenav">
<h4>our web site</h4>
<a href="#">home</a>
<a href="#">products</a>
<a href="#">services</a>
<a href="#">map</a>
<a href="#">help</a>
<a href="#">contacts</a>
</div>
</body>
</html>
Jul 20 '05 #1
3 1885
David wrote:
I made a navbar where the buttons light up when the user moves over
them. The only problem was in IE the buttons only light up when
hovering over the text.
Which version? Which os?
When I positioned my navbar directly at the top of the page it works
fine even in IE!
Moving the navbar down about double the height of the font being used
and then it stops working only highling the buttons when over the
text, weird no?
Perhaps. MSIE/win does some weird things sometimes.
Here is the code, this works now in IE but if you change the top
offset of sitenav to more than double the font size the buttons no
longer light up properly, try it and see for yourself!!!


[code snipped]

If you want us to be able to see it, supply a url.

--
Brian
follow the directions in my address to email me

Jul 20 '05 #2
> Which version? Which os?

IE 6
XP
If you want us to be able to see it, supply a url.


cant at the mo, sorry!
Jul 20 '05 #3
David wrote:
Which version? Which os?


IE 6
XP
If you want us to be able to see it, supply a url.


cant at the mo, sorry!


can't help you then, sorry!

--
Brian
follow the directions in my address to email me

Jul 20 '05 #4

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

Similar topics

0
by: rick | last post by:
Hello everyone I am trying to locate the sample files used in "A tour of the code - NavBar" for the redesign of the msdn online website in 1998. They were written and developed by Robert Carter...
0
by: Chad | last post by:
I have a horizontal navbar between my banner and the page's main content (divided into three columns). Below the navbar, the left and right columns are fixed and the center is liquid. I want to...
2
by: Wiz | last post by:
Greetings the group! I see from a few previous postings that I am not the only person having a problem with hidden list item bullets. This question applies to both IE 6, current version, and...
23
by: Uwe Brauer | last post by:
Hello In the w3c website: http://www.w3.org/Style/Examples/011/firstcss There is an example of a first attempt of a css. Is it possible that Not only the form but also the content of...
11
by: A.Translator | last post by:
On this page http://www.xs4all.nl/~hogen/MvK_nieuw/ I have a horizontal menu made up of an ul (bit scary, this, feel much more comfortable with a table there, but I keep reading I should use css...
0
by: bobr | last post by:
See: http://www.writeonwhidbey.org/ When you shrink the width of your browser in IE, everything scrunches up until you get to a the width of the largest image...then a horiz scroll bar appears,...
4
torquehero
by: torquehero | last post by:
Hi all :) I have created a horizontal navbar using Xara Menumaker. The Menu items have several dropdown menus. Its a javascript. When the mouse cursor is moved over any menu item, a dropdown...
3
by: sevenalive | last post by:
Hi-- I am very new at this and trying to teach myself, and I have run into a roadblock that I can't figure out no matter how many times I Google it......my navbar is a vertical column of images,...
2
by: dartanian | last post by:
I have a fluid horizontal navbar on my website which is formatted using floats and percentage widths to make it fluid. This looks great in WinXP Firefox, Opera, and even IE6. Safari and IE7 render...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

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.