I have been playing around with several different versions for a
horizontal menu, but I haven't been able to build a horizontal
navigation based on the vertical one featured on www.alistapart.com in
the article "taming lists".
However I have managed to build a horizontal navigation but it has a
slight hitch in Mozilla and Opera, but it's fine in Internet Explorer.
It is a strange occurrance of a 4 - 5 Pixel bar in grey (which is the
background if not activated) when I set one menu item to an active state
(it has no link then) by assigning a class to it. Here's an example of
the menu I am talking about : http://www.officecatering.de.
Anybody out there with a similar problem or even better a hint?
Regards,
Ansgar Hein 2 5316
Ansgar Hein <ni****@gmx.d e> wrote: However I have managed to build a horizontal navigation but it has a slight hitch in Mozilla and Opera, but it's fine in Internet Explorer. It is a strange occurrance of a 4 - 5 Pixel bar in grey (which is the background if not activated) when I set one menu item to an active state (it has no link then) by assigning a class to it. Here's an example of the menu I am talking about: http://www.officecatering.de.
Anybody out there with a similar problem or even better a hint?
You have:
<li>...</li>
<li>...</li>
with li {display: inline;}
But the linebreaks between the <li>s are white space so what you have
is equivalent to <li>...</li> <li>...</li> and hence you get visible
whitespace between you <li>s that shows the grey background colour of
the surrounding <div>.
Removing all the whitespace fixes the problem in Opera. Mozilla is a
bit odd, removing the whitespace fixes it at every font zoom except
100%.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Hi Steve!
Amazing - that solved the problem, except for the 100% bug in Mozilla.
The code looks a bit ugly now, but I can live with that.
Regards,
Ansgar This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: elad |
last post by:
Hi
The Menu doesn't work properly when I have 2 frame and the Menu popup
frame=document target frame, when I choose item in
the menu the doc opened and the menu get stuck.
Here is the code I'm using:
FrameSet -------------------------------------------------------
<html>
|
by: theo |
last post by:
Hi,
I'm working on a horizontal row menu, to use like folder tabs. Does
anyone know what the CSS style "cursor" is supposed to produce? Any working
samples? I put it in the code, but can't see anything resolve.
http://www.w3schools.com/css/pr_class_cursor.asp
It's probably staring right at me, but can someone tell me why hover isn't
working in IE, but does in Mozilla?
http://wholives.com/temp/tabs.htm
me
|
by: Chris Beall |
last post by:
Objective: Using an HTML list, create a horizontal nav menu with these
characteristics:
- All menu items have the same width at all times.
- When the window width is reduced, the menu items stack, rather than
creating a horizontal scroll bar.
- The menu cluster is always centered on the window.
See
http://pages.prodigy.net/chris_beall/Demo/centered%20horizontal%20list.html
|
by: Sergio E. |
last post by:
Hi group,
I write this post with the following question:
How can I to build an absolutely horizontal menu?, This is because I can't
find how can I configure the menu component of asp.net 2.0 in vs2005.
I need somthing like this:
the root menu in this form
|
by: camphor |
last post by:
hi,
I have a single column webpage with a horizontal dropdown menu and am trying to make the nav bar fit across the page, the column is 800px, it looks ok in dreamweaver 8 but when I test it in firefox, the nav bar which is a horizontal blue stripe with the links written inside it doesn't stretch the whole 800px, also how would you align the words in the submenu to the main menu, currently the submenus are centered
html
<body>
<div...
| |
by: Haitashi |
last post by:
Hello everyone:
I have a CFMenu with the type set to horizontal. I'd like to have the sub-menu items open vertically. Is that possible?
Here is my code. I want the Portals sub-menu (Portal A, Portal B, Portal C) to open vertically instead of horizontally.
<cfmenu name="topMenu" type="horizontal" fontsize="14" fontcolor="##7A7251"
font="'Lucida Sans', verdana, sans-serif;" selectedFontColor="##F58026" ...
|
by: Jack Gray |
last post by:
I am using a nested list for a simple drop-down menu. All CSS and XHTML
validate. The menu is displayed properly in 7 different newer browsers
including IE7, Firefox, Opera & Safari. I have implemented csshover.htc.
In IE6, the menu displays on two lines and the drop-down (Calendar) does
not work. Any clue where the problem lies? Url: caz-cc.com/index.htm.
Thanks soooo much!
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |