473,320 Members | 2,029 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,320 software developers and data experts.

Cross browser way to inherit?

Hi,

I've discovered on both IE and Firefox, this is not working ...

..tabText {
color: inherit;
font-family: Tahoma;
font-size: 11px;
font-weight: bold;
}

with regards to inheriting color. Here is the HTML in which this is
found:

<td class="topTab tabSelected" style="padding-left:5px; padding-
right:5px;">
<table><tr>
<td class="tabText" id="tab1">General</td>
<td class="closeTab"><img src="images/close.gif" alt="Close"
border="0"></td>
</tr></table>
</td>

Any ways to write the CSS class so that it inherits?

Thanks, - Dave

Apr 23 '07 #1
4 1873
la***********@zipmail.com wrote:
I've discovered on both IE and Firefox, this is not working ...

.tabText {
color: inherit;
font-family: Tahoma;
font-size: 11px;
font-weight: bold;
}

with regards to inheriting color. Here is the HTML in which this is
found:
Where's the rest?
<td class="topTab tabSelected" style="padding-left:5px; padding-right:5px;">
<table><tr>
<td class="tabText" id="tab1">General</td>
<td class="closeTab"><img src="images/close.gif" alt="Close"
border="0"></td>
</tr></table>
</td>

Any ways to write the CSS class so that it inherits?
What's the color styling on #tab1? Where are the rules for .topTab and
..tabSelected? Show us the CSS. Provide a URL to validated code.

--
John
Apr 23 '07 #2
On 23 Apr, 17:20, "laredotorn...@zipmail.com"
<laredotorn...@zipmail.comwrote:
I've discovered on both IE and Firefox, this is not working ...
Use a complete page, not a fragment

Put it on a public web server somewhere,

Tell us the URL.

Apr 23 '07 #3
la***********@zipmail.com wrote:
>
I've discovered on both IE and Firefox, this is not working ...

color: inherit;
Color is inherited by default, so why are you setting it in the first place?

--
Berg
Apr 23 '07 #4
Scripsit la***********@zipmail.com:
I've discovered on both IE and Firefox, this is not working ...

.tabText {
color: inherit;
font-family: Tahoma;
font-size: 11px;
font-weight: bold;
}

with regards to inheriting color.
It also works poorly with regard to the things that "work". Setting text to
11 pixels bold Tahoma is a horrendous choice and should be reserved for
usage in torture.

Others have asked you to post the URL. My suggestion is that you rewrite the
page from scratch after learning some basic authoring principles from a good
book. That's probably much faster than trying to fix the mess, even with
help from the public.

Regarding the value inherit, it is not supported by IE, and you wouldn't
need it anyway, because in almost all cases you could set the color to a
specific value or let it be inherited by default.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Apr 23 '07 #5

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

Similar topics

3
by: Kevin Thorpe | last post by:
I've hit a problem with sessions. If I have a document relying on sessions which has a link target=_blank then the new window inherits the session from its parent (in IE). However, if I embed...
5
by: HchC | last post by:
Not looking for a special or fancy css stylesheet. For a HTML beginner, stylesheet is still far away from now. Not even said thinking about cross browser. But, an XHTML page without stylesheet look...
1
by: MatthewRoberts | last post by:
Howdy All, I am having difficulty with two-way communication across AppDomains in an attempt to dynamically script applications. Everything works as expected, except when using ByRef parameters....
17
by: Mark Rae | last post by:
Hi, I'm interested in your opinion concerning how far you would consider it necessary to code for cross-browser compatibility these days, especially for public-facing Internet sites... ...
2
by: Eric Caron | last post by:
Hi everybody, I was doing some cross-browser tests today and I found out that if you specify the width and height for a button type control, asp.net doesn't output the style information when...
2
by: Questman | last post by:
Good afternoon, Does anyone have any code that implements, or approaches implementing, a cross-browser DHTML/JS solution to provide an Excel-like Grid on a web page - I'm trying to convert an...
9
by: permanent.tourist | last post by:
I'm having a hell of a job getting this to work in Safari: the only thing I can think of is that one can't use reload() across to another frame for security reasons. Does anyone have a concrete...
15
by: CMM | last post by:
So I'm half way through overseeing a large project in ASP.NET 2.0. My superiors have decided that it would be nice if we ensured the site worked on all the major platforms (as they see it: IE,...
4
by: Duncan Jones | last post by:
I'm almost certain there is no easy answer to this question, but I'd thought I'd just check.... *Ignoring* for a second why I want to do this, is there any way to specify that an element in a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.