473,809 Members | 2,908 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CSS cascading upwards in explorer - is this a bug?

I'm trying to put together a little navigation bar and have a MAIN and
then a SUB navigation which has visibility triggered with Javscript.

The problem I have is that In firefox I can colour both levels of
navigation a differently, but in Explorer the RED of the A element in
the "navSub" DIV jumps up a level and cascades to the preceeding "nav"
DIV I though cascading was supposed to happen downwards not upwards.
Can I have two different colours? Different HOVER colours are working,
just not the standard link colours???

Both HTML and CSS validate with no errors or warnings, so I don't think
I have done anything stupid. Is it just an Explorer bug?

Don't worry, the red is just used as an example colour, I really want
black for the subNav.

Jul 21 '05 #1
10 1724
On 1 Mar 2005 20:30:36 -0800 ru************@ gmail.com wrote:
I'm trying to put together a little navigation bar and have a MAIN and
then a SUB navigation which has visibility triggered with Javscript.

The problem I have is that In firefox I can colour both levels of
navigation a differently, but in Explorer the RED of the A element in
the "navSub" DIV jumps up a level and cascades to the preceeding "nav"
DIV I though cascading was supposed to happen downwards not upwards.
Can I have two different colours? Different HOVER colours are working,
just not the standard link colours???

Both HTML and CSS validate with no errors or warnings, so I don't think
I have done anything stupid. Is it just an Explorer bug?

Don't worry, the red is just used as an example colour, I really want
black for the subNav.

If you're using <ul><li> combos, you can define each level any way you want.
Or you can put each seperate item into a division and define the divisions
accordingly.
Jul 21 '05 #2
ru************@ gmail.com wrote:
I'm trying to put together a little navigation bar and have a MAIN and
then a SUB navigation which has visibility triggered with Javscript.

The problem I have is that In firefox I can colour both levels of
navigation a differently, but in Explorer the RED of the A element in
the "navSub" DIV jumps up a level and cascades to the preceeding "nav"
DIV I though cascading was supposed to happen downwards not upwards.
Can I have two different colours? Different HOVER colours are working,
just not the standard link colours???


Can't tell anything without a URL.

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/>
Jul 21 '05 #3
Oops, that was silly. What you get for working till 5am I guess...

Here you go...

server-space.co.uk/rachel/index.htm
server-space.co.uk/rachel/style.css

Jul 21 '05 #4
I've used a combination of both. The links are in a UL which is
rendered INLINE but both NAV BARS are in separate DIV so I could colour
each separately, or so I thought.

Jul 21 '05 #5
ru************@ gmail.com wrote:
Oops, that was silly. What you get for working till 5am I guess...

Here you go...

server-space.co.uk/rachel/index.htm
server-space.co.uk/rachel/style.css


Your troublesome style is:

..navSub a:link, a:visited {... }

That matches all unvisited links that are descendents of navSub and
ALL visited links.

Make it .navSub a:link, .navSub a:visited instead. You have the same
mistake a few other places as well.

The reason it was only showing up in IE is because IE has different
ideas about whether href="#" should be treated as a visited link or
not. When you'd put real links in there you would have seen the
problem more easily as it would have affected only visited links, but
in all browsers.

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/>
Jul 21 '05 #6
Got it in one. I just copied some of the code from a magazine and had
not appreciated the proper syntax. Thank goodness for forums or I'd
never be learning this stuff.

Thanks for your help,
Rupert

Jul 21 '05 #7
ru************@ gmail.com wrote:

server-space.co.uk/rachel/index.htm
server-space.co.uk/rachel/style.css


Be aware that your design breaks badly when text is zoomed.
Have a peek in a mozilla browser (firefox, NS7) at text size 150%.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Jul 21 '05 #8
On Wed, 02 Mar 2005 13:31:48 -0600, kchayka wrote:
ru************@ gmail.com wrote:

server-space.co.uk/rachel/index.htm
server-space.co.uk/rachel/style.css


Be aware that your design breaks badly when text is zoomed.
Have a peek in a mozilla browser (firefox, NS7) at text size 150%.


Design doesn't wait for a font size change to break in my browser.
(Konqueror in Mandrake)

In the first line, black background, I see up to '... | training diary |'

The 2nd line, green background, I see 'sponsors' vertically overlapping
'company'. The bottom of the letters in sponsors is touching the tops of
the letters in company.

Carolyn
Jul 21 '05 #9
Carolyn Marenger wrote:
On Wed, 02 Mar 2005 13:31:48 -0600, kchayka wrote:
ru************@ gmail.com wrote:
server-space.co.uk/rachel/index.htm
server-space.co.uk/rachel/style.css
Be aware that your design breaks badly when text is zoomed.
Have a peek in a mozilla browser (firefox, NS7) at text size 150%.

Design doesn't wait for a font size change to break in my browser.
(Konqueror in Mandrake) In the first line, black background, I see up to '... | training diary |' The 2nd line, green background, I see 'sponsors' vertically overlapping
'company'. The bottom of the letters in sponsors is touching the tops of
the letters in company.


At my user settings, but not zoomed -- Opera, Konqueror, Firefox, all Linux:

http://blinkynet.net/stuff/comp/nolan.gif

--
Blinky Linux Registered User 297263
Who has implemented Usenet Solution #45933:
Now killing all posts originating at Google Groups

Jul 21 '05 #10

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

Similar topics

0
1808
by: Humpty Dumpty | last post by:
Hi folks, here's a challenge: I have a dynamically created cascading menu in Tkinter that can be quite large because it is created from a file. I tried using lazy creation so only the menu item that is actually selected by the user gets children menu items created under it, but that fails. I did this by use of postcommand callback, in which I dynamically add the children menu items to the parent. However, a print statement in the...
31
6828
by: Axel Dahmen | last post by:
I try to combine properties of several classes. This is done by assigning a space separated list of class definitions to an element. However, IE shows a kind of preference when choosing the right property which I think is probably wrong. Here's what it does: If two classes are defined in a stylesheet providing the same property, and if these two classes are assigned to one single element, the preference which class's property is used is...
7
2747
by: Marci | last post by:
I found this script for cascading menus, however, I cannot reach the author to solve the bug I am having when I add a second menu to it. My problem is this: If I click on the first link, the menu displays well. If I then click on the second link, the first menu from the first link still displays. How do I get make the first menu disappear when I click on the second and vice versa? Please help...thanks.
1
2018
by: JMosey | last post by:
Not sure if this has been covered ( a google search came up pretty bare). I have a site that: - has multi-level cascading menus - floats center of the browser window - Will have fairly heavy Safari and Firefox views (~25%) Finding a cascading menu is easy, I trip over about half a dozen of those a week. The problem is when you maximize on a big screen in
19
3884
by: LP | last post by:
I am using (trying to) CR version XI, cascading parameters feature works it asks user to enter params. But if page is resubmitted. It prompts for params again. I did set ReuseParameterValuesOnRefresh="True" in a viewer, but it still doesn't work. Did anyone run into this problem. What's the solution? Please help. Thank you
1
1653
by: dkirkdrei | last post by:
I am using the javascript below in conjuction with PHP to dynamically build a cascading menu of part assemblies from a database. The cascading menu allows the user to "drill" down to the single part level of larger part assemblies This works very well except for when a person needs to search for a specific item. Edit>Find on this page(ctrl+f) will not work because unless the menu has been broken down or "cascded" if you will, the subparts...
1
2168
by: Anthony | last post by:
Below is a script I found at http://javascript.internet.com/ for a cascading menu. The script works great but there is one thing that I would like modified. BecauseI am just learning javascript, I did not want to try to modify the code without a little help. When you place the mouse over the menu bar, this script calls the function to show the menu. I would like it modified to hide the menu when the mouse is removed. Please help. The...
0
2328
by: lekshmisp1982 | last post by:
Hi All, I am using sql server 2005 reporting services to generate the report.. I need to make certain parameters to depend on the previous parameters .. I think cascading parameters can do the trick but how to make a parameter as a cascading parameter and how to use it? Is there anything like that I can use cascading parameters only for parameters using queries? Can I use it for non queried parameters also? It would be nice if you...
0
9600
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
10633
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...
0
10376
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 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...
1
10375
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
10114
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...
0
9198
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, 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...
0
6880
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();...
0
5686
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3011
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.