473,657 Members | 2,591 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with cascade in menus

As usual, it looks right in Firefox 3 but not in IE6.

See http://www.tc3.edu/instruct/sbrown/n.../indexgood.htm
for the desired behavior -- when you hover over the second or third
main menu item, a submenu appears and an item can be selected. (The
links don't go anywhere.) This works in FF and IE.
The style sheet is
http://www.tc3.edu/instruct/sbrown/prodrop4.css

But when I include my own style sheet
http://www.tc3.edu/instruct/sbrown/screen.css
in addition to prodrop4.css, then FF still works but IE now has a gap
between the main line and the sub-menus, so when you try to mouse to
a sub-menu the main item is no longer hovered and the sub-menu
disappears. See
http://www.tc3.edu/instruct/sbrown/n...s/indexbad.htm

I'm sure there's something about sizing or positioning of the sub-
menus (the inner ULs) isn't being explicitly specified in prodrop4,
but after a couple of hours with the Mozilla DOM inspector I haven't
been able to find it.

Can someone point out what I'm missing? Thanks!
--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Jul 27 '08 #1
41 2593
Sun, 27 Jul 2008 16:07:39 -0400 from Stan Brown
<th************ @fastmail.fm>:
But when I include my own style sheet
http://www.tc3.edu/instruct/sbrown/screen.css
in addition to prodrop4.css, then FF still works but IE now has a gap
between the main line and the sub-menus, so when you try to mouse to
a sub-menu the main item is no longer hovered and the sub-menu
disappears. See
http://www.tc3.edu/instruct/sbrown/n...s/indexbad.htm

I'm sure there's something about sizing or positioning of the sub-
menus (the inner ULs) isn't being explicitly specified in prodrop4,
but after a couple of hours with the Mozilla DOM inspector I haven't
been able to find it.

Can someone point out what I'm missing? Thanks!
I figured it out by systematically removing chunks of my own CSS
until the undesired behavior disappeared. It was a declaration
table { margin-top: 1em }

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Jul 29 '08 #2
Stan Brown wrote:
>
Can someone point out what I'm missing? Thanks!
Hi Stan,

I am not claiming any great expertise here, as much as anything because
when I went through this exercise a few months back I quickly discovered
that with CSS you couldn't really calculate what was going to happen,
you just had to try it out in as many browsers as possible, and attempt
to fix the broken bits (FF for me was the best starting point). It is
coding by trial and error - which means basically doing experiments.
And in any case I have now forgotten most of what I learnt.

So I have only quickly skimmed your CSS. I noticed that the body style
has some padding which will cascade down to other objects. Since older
version of IE had the box model inside out, you may be seeing some
effects of that. You might want to try zeroing that out, and if the
menu works identity the elements that need to have the padding zeroed.
Aug 3 '08 #3
Sun, 03 Aug 2008 08:35:04 +0800 from David Morris
<dl************ **@netwizDONTSP AM.com.au>:
I noticed that the body style
has some padding which will cascade down to other objects. Since older
version of IE had the box model inside out, you may be seeing some
effects of that. You might want to try zeroing that out, and if the
menu works identity the elements that need to have the padding zeroed.
Thanks for the thought, David. I guess my article of 29 July never
reached your site. As I reported, I solved the problem by a divide-
and-conquer strategy. The working code is now at
http://www.tc3.edu/instruct/sbrown/stat5808b/

In Lynx, the menus show as nested lists, which seems to be a graceful
degradation.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Aug 3 '08 #4
Stan Brown wrote:
Sun, 03 Aug 2008 08:35:04 +0800 from David Morris
<dl************ **@netwizDONTSP AM.com.au>:
Thanks for the thought, David. I guess my article of 29 July never
reached your site. As I reported, I solved the problem by a divide-
and-conquer strategy. The working code is now at
http://www.tc3.edu/instruct/sbrown/stat5808b/
Um nope. I guess the news server here doesn't get to see everything.
This might not be all bad!

Was that you who made the useful suggestions about spelling on my site?
Aug 3 '08 #5
Mon, 04 Aug 2008 06:37:44 +0800 from David Morris
<dl************ **@netwizDONTSP AM.com.au>:
Was that you who made the useful suggestions about spelling on my site?
Maybe, but I have no memory of that, possibly because you didn't say
what your site is. :-)

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/200..._wont_help_you
Aug 4 '08 #6
Stan Brown wrote:
Maybe, but I have no memory of that, possibly because you didn't say
what your site is. :-)
http://www.netwiz.com.au/cssmenu.html
Aug 4 '08 #7

David Morris wrote:
>
http://www.netwiz.com.au/cssmenu.html
/* We change font size to 62.6 % to make 0.1em == 1px. We then jump all
the other font sizes up and fix some of the cascading effects...

Another "clagnut" lemming, I see. <heavy sigh>

This is the stupidest method ever devised for sizing text. Will this
crap ever go away?

--
Berg
Aug 4 '08 #8
Bergamot wrote:
David Morris wrote:
>http://www.netwiz.com.au/cssmenu.html

/* We change font size to 62.6 % to make 0.1em == 1px. We then jump all
the other font sizes up and fix some of the cascading effects...

Another "clagnut" lemming, I see. <heavy sigh>

This is the stupidest method ever devised for sizing text. Will this
crap ever go away?
If you are not just sounding off because you think it makes you sound
good, and you really do have a problem with min-font size, upgrade to
FF3. The font sizes are fine there.
Aug 5 '08 #9
On 2008-08-05, David Morris wrote:
Bergamot wrote:
>David Morris wrote:
>>http://www.netwiz.com.au/cssmenu.html

/* We change font size to 62.6 % to make 0.1em == 1px. We then jump all
the other font sizes up and fix some of the cascading effects...

Another "clagnut" lemming, I see. <heavy sigh>

This is the stupidest method ever devised for sizing text. Will this
crap ever go away?
If you are not just sounding off because you think it makes you sound
good, and you really do have a problem with min-font size, upgrade to
FF3. The font sizes are fine there.
No, they are not fine in FF3; they are too small for me to read.

If I set a minimum font size in FF, the page is too wide to fit on
my screen.

Using 'font-size: 62.5%' is one of the problems.

Both can be solved with a sensible stylesheet.

--
Chris F.A. Johnson <http://cfaj.freeshell. org>
=============== =============== =============== =============== =======
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Aug 5 '08 #10

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

Similar topics

0
5899
by: Fraser Hanson | last post by:
Hello, I have a table which has a foreign key relationship with itself. I want and expect my updates to cascade (deletes definitely cascade as expected) but instead I just get error 1217: foriegn key error. I have written example code to use in reproducing the problem: # Create the table
1
8889
by: Andrew DeFaria | last post by:
I created the following .sql file to demonstrate a problem I'm having. According to the manual: If |ON DELETE CASCADE| is specified, and a row in the parent table is deleted, then InnoDB automatically deletes also all those rows in the child table whose foreign key values are equal to the referenced key value in the parent row. However:
2
1601
by: Raghuraman | last post by:
Hi, I have some tables which have references between them. If i delete the reors in the child tables , since it references the column of the parent , i get error msg in my front end (quite natural). do u tell me how to delete the child table records with out affecting the relation ships or can recreate the relations with out affecting my data & structure and the constraints.
2
4071
by: Chris | last post by:
I'm desperately trying to get my site finished against the clock. It looks great in FF, Opera and IE6 but falls apart in IE5 and Safari. I HAVE to have it ok for IE5.x. Has anyone got any suggestions? Can anyone help? www.hyperion-interactive.com/test (There's a Flash sniffer first) Thanks in advance to anyone that has any pointers. Chris
4
1966
by: Phil Grimpo | last post by:
I had previously explained this problem in a different thread, but now that I have an IISState log, I figured I'd re-start the thred. My situation and the log are following... I have a very odd situation here. I have an administration page, where based on a users permissions, a recordset is called from the SQL server which has a list of paths to "Module Menus". Each of these menus are then placed into the page by calling...
3
2708
by: Terry Bell | last post by:
I have some code that adds entries to the "Module Compiled" popup menu. Works fine in A97. You can open a module, right click, and the new entries are there for you to click. I converted it to A2000, and reapplied the new entries. But now when you open a module and right click (in A2K), the new entries are nowhere to be seen. If (while in the database window) you click on View, Toolbars, Customize, Toolbars tab, tick the Shortcut Menus...
33
4280
by: Lee C. | last post by:
I'm finding this to be extremely difficult to set up. I understand that Access won't manage the primary key and the cascade updates for a table. Fine. I tried changing the PK type to number and setting default value to a UDF that manages the auto-numbering. Access won't take a UDF as a default value. Okay, I'll use SQL WITHOUT any aggregate functions, for the default value. Access won't do that either. Okay, I create a second...
14
5794
by: Karl O. Pinc | last post by:
Hi, Thought perhaps some other eyes than mine can tell if I'm doing something wrong here or if there's a bug somewhere. I've never passed a ROWTYPE varaible to a function but I don't see where the problem is. I keep getting errors like (the first is my debug output): NOTICE: last cycle is: 11 WARNING: Error occurred while executing PL/pgSQL function
0
2688
by: mrhodes02 | last post by:
I have two simple tables Employees (primary key table) Empid, empname,title MgrXrf (foreign key table) MgrId,Empid MgrID & Empid in MgrXrf have a foreign contstrant to EmpID in Employees. That works fine. I don' want to add a record to MgrXRF unless both field values exist in Employees. Problem is I also want to set the delete rule to cascade on both fields, so that if I delete an employee their record is deleted from MgrXRF no...
0
8305
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8823
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, 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...
1
8503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
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 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...
1
6163
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4151
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...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1950
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1607
bsmnconsultancy
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...

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.