473,396 Members | 2,002 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.

inheritance issue with IE 5

Hi,

I've got the following css. It works fine with Firefox, but with IE 5,
the A is not inherited from li.flagtopic. How come ?
#divCutFlags li
{
float: left;
margin-right: 2px;
cursor: pointer;
}

#divCutFlags li.flagtopic
{
text-decoration: underline;
font-weight: bold;
cursor: text;
}

#divCutFlags li.flagtopic A
{
color: #333366;
text-decoration: underline;
font-weight: bold;
cursor: text;
}

Jun 26 '06 #1
4 1089

sa*************@googlemail.com wrote:
Hi,

I've got the following css. It works fine with Firefox, but with IE 5,
the A is not inherited from li.flagtopic. How come ?
Since you explicitly give the li.flagtopic A all the properties you give
li.flagtopic, how can you tell whether it's "inheriting" anything or not?
#divCutFlags li
{
float: left;
margin-right: 2px;
cursor: pointer;
}

#divCutFlags li.flagtopic
{
text-decoration: underline;
font-weight: bold;
cursor: text;
}

#divCutFlags li.flagtopic A
{
color: #333366;
text-decoration: underline;
font-weight: bold;
cursor: text;
}

Jun 26 '06 #2
Well, I would expect the A to be :

color: #333366;
text-decoration: underline;
font-weight: bold;
cursor: text;

and it's not. It's just a A with default body properties. Do you know
what I mean ?

Harlan Messinger wrote:
sa*************@googlemail.com wrote:
Hi,

I've got the following css. It works fine with Firefox, but with IE 5,
the A is not inherited from li.flagtopic. How come ?


Since you explicitly give the li.flagtopic A all the properties you give
li.flagtopic, how can you tell whether it's "inheriting" anything or not?
#divCutFlags li
{
float: left;
margin-right: 2px;
cursor: pointer;
}

#divCutFlags li.flagtopic
{
text-decoration: underline;
font-weight: bold;
cursor: text;
}

#divCutFlags li.flagtopic A
{
color: #333366;
text-decoration: underline;
font-weight: bold;
cursor: text;
}


Jun 26 '06 #3

sa*************@googlemail.com wrote:
Well, I would expect the A to be :

color: #333366;
text-decoration: underline;
font-weight: bold;
cursor: text;

and it's not. It's just a A with default body properties.
1). This sounds like a simple error of your selector not matching,
rather than anything complex about properties.

2). This isn't "inheritance", as your OP described it.

3). CSS doesn't do inheritance anyway (at least not in that sense).
Do you know what I mean ?


4). No, we need a URL to the page to begin knowing what's wrong with
it.

Jun 26 '06 #4
sa*************@googlemail.com wrote:
Well, I would expect the A to be :

color: #333366;
text-decoration: underline;
font-weight: bold;
cursor: text;

and it's not. It's just a A with default body properties. Do you know
what I mean ?
Well, I know what you're telling me, but since the problem certainly has
some connection to some as-yet-unknown portion of your CSS and/or HTML
code and since you're keeping that a secret, it's hard to tell what the
problem might be.

Harlan Messinger wrote:
sa*************@googlemail.com wrote:
Hi,

I've got the following css. It works fine with Firefox, but with IE 5,
the A is not inherited from li.flagtopic. How come ?

Since you explicitly give the li.flagtopic A all the properties you give
li.flagtopic, how can you tell whether it's "inheriting" anything or not?
#divCutFlags li
{
float: left;
margin-right: 2px;
cursor: pointer;
}

#divCutFlags li.flagtopic
{
text-decoration: underline;
font-weight: bold;
cursor: text;
}

#divCutFlags li.flagtopic A
{
color: #333366;
text-decoration: underline;
font-weight: bold;
cursor: text;
}

Jun 26 '06 #5

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

Similar topics

11
by: Ricky Romaya | last post by:
Hi, Are there any ways to get multiple inheritace in PHP4? For example, I have 3 parent class, class A, B, and C. I want class X to inherit all those 3 classes. Consider merging those 3 classes...
4
by: Roy Pereira | last post by:
I have an application that is composed of a set of "Content" dlls and a viewer application. The viewer calls a standard set of functions that are present in all the dlls. I maintain this by...
4
by: JKop | last post by:
I'm starting to think that whenever you derive one class from another, that you should use virtual inheritance *all* the time, unless you have an explicit reason not to. I'm even thinking that...
14
by: Steve Jorgensen | last post by:
Recently, I tried and did a poor job explaining an idea I've had for handling a particular case of implementation inheritance that would be easy and obvious in a fully OOP language, but is not at...
22
by: Matthew Louden | last post by:
I want to know why C# doesnt support multiple inheritance? But why we can inherit multiple interfaces instead? I know this is the rule, but I dont understand why. Can anyone give me some concrete...
15
by: Sinex | last post by:
Hi, Why does C# disallow multiple inheritance? Whats the reason behind this? Is there any advantage or is it just a method to avoid some problems (if so, what problems?) that come with multiple...
45
by: Ben Blank | last post by:
I'm writing a family of classes which all inherit most of their methods and code (including constructors) from a single base class. When attempting to instance one of the derived classes using...
6
by: VR | last post by:
Hi, I read about Master Pages in ASP.Net 2.0 and after implementing some WinForms Visual Inheritance I tryed it with WebForms (let's say .aspx pages, my MasterPage does not have a form tag itself...
11
by: PAul Maskens | last post by:
The form designer adds unnecessary code to the section when using a subclassed control. I've reproduced this in VS.NET 2002 and VS.NET 2003 so it's pretty fundamental. Outline steps: Create a...
16
by: devicerandom | last post by:
Hi, I am currently using the Cmd module for a mixed cli+gui application. I am starting to refactor my code and it would be highly desirable if many commands could be built as simple plugins. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...
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.