473,396 Members | 1,866 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,396 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 1898
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...

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.