473,320 Members | 1,828 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.

CSS incompatibility in Navigator 7

Ben
Hello,
I was trying to design a class hierarchy within my webpage which would
benefit css.

Inheritance of classes seems to work as expected in IE. However, if I try
to use inheritance through Navigator it doesn't work.
I expect that I should be able to denote the class .Name.Title to obtain the
class Title which is a subclass of Name. The basic item which I couldn't
get to work is the following:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<style>
..Name.Title
{
font-weight: bold; <!-- variable -->
font-size: 18.0pt; <!-- variable -->
font-family: Tahoma
}
</style>
</head>
<body>
<!-- width is variable -->
<table width=350 class=Name>
<tr><td class=Title>Title Line</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td class=Description>Description of title</td></tr>
<tr><td>&nbsp;</td></tr>
</table>
</body>
</html>

Can anyone tell me why Navigator doesn't bold the text in this example?

Thanks,
Ben
Jul 20 '05 #1
4 1510
Ben wrote:
Inheritance of classes seems to work as expected in IE.
Funny, CSS doesn't have any concept of class inheritance. Only property
inheritance.
However, if I try to use inheritance through Navigator it doesn't work. I expect that I should be able to denote the class .Name.Title
That looks more like a selector then a class, specifically "An element of
both class Name and class Title".
to obtain the class Title which is a subclass of Name. The basic item
which I couldn't get to work is the following:
.Name.Title
{
font-weight: bold; <!-- variable -->
You have SGML comments in your CSS? This is bad.
font-size: 18.0pt; <!-- variable -->
You use points for a screen media style sheet? This is very bad.
font-family: Tahoma
}
</style>
</head>
<body>
<!-- width is variable -->
<table width=350 class=Name>
<tr><td class=Title>Title Line</td></tr>
Which doesn't match anything.

To match this you would need:

..Name .Title

The space is a descendent selector (meaning an element with class of Title
contained by an element of class Name).
<tr><td>&nbsp;</td></tr>


What odd tabular data you have
--
David Dorward <http://dorward.me.uk/>
Jul 20 '05 #2
Ben
David,
Thanks for the final answer. I'm sorry about my terminology being wrong
I'm new to webpages and CSS.
..Name .Title (did the trick) I also changed the SGML comments and was using
the pt syntax because this is merely for a mockup. Thanks for you tips!

Ben
"David Dorward" <do*****@yahoo.com> wrote in message
news:bv*******************@news.demon.co.uk...
Ben wrote:
Inheritance of classes seems to work as expected in IE.


Funny, CSS doesn't have any concept of class inheritance. Only property
inheritance.
However, if I try to use inheritance through Navigator it doesn't work.

I expect that I should be able to denote the class .Name.Title


That looks more like a selector then a class, specifically "An element of
both class Name and class Title".
to obtain the class Title which is a subclass of Name. The basic item
which I couldn't get to work is the following:

.Name.Title
{
font-weight: bold; <!-- variable -->


You have SGML comments in your CSS? This is bad.
font-size: 18.0pt; <!-- variable -->


You use points for a screen media style sheet? This is very bad.
font-family: Tahoma
}
</style>
</head>
<body>
<!-- width is variable -->
<table width=350 class=Name>
<tr><td class=Title>Title Line</td></tr>


Which doesn't match anything.

To match this you would need:

.Name .Title

The space is a descendent selector (meaning an element with class of Title
contained by an element of class Name).
<tr><td>&nbsp;</td></tr>


What odd tabular data you have
--
David Dorward <http://dorward.me.uk/>

Jul 20 '05 #3
> > <tr><td>&nbsp;</td></tr>

What odd tabular data you have
Hmmm. I do that myself when I have a border on a table to keep the border
visible on the empty cells. Do you have an alternative way of doing that?
I've alwas hated that!

Jeff

--
David Dorward <http://dorward.me.uk/>

Jul 20 '05 #4
"Jeff Thies" <no****@nospam.net> wrote:
> <tr><td>&nbsp;</td></tr>


What odd tabular data you have


Hmmm. I do that myself when I have a border on a table to keep the border
visible on the empty cells. Do you have an alternative way of doing that?


table{empty-cells:show}

(doesn't work on IE)

--
Spartanicus
Jul 20 '05 #5

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

Similar topics

13
by: Jake | last post by:
Hi all I am trying to read all the navigator object elements 1. Using the navigator.length returns undefined, cant use for loop; 2.Using and array of known elements like var a =...
12
by: Jan Buchwald | last post by:
navigator.userAgent returns information about the user operting system, Browser etc. Usually you get somthing like: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) or Mozilla/4.0...
13
by: ima | last post by:
Where can I find a list of valid names for Navigator.AppName?
6
by: m0002a | last post by:
I have sucessfully set up an HADR pair of databases. Everthing works fine for the primary and secondary HADR databases, and manual takeover works fine. When I try to set up the second pair of...
4
by: James P. | last post by:
Hello there, I have a bound-form using Navigator so that the user can move back and forth to update record in the form. Every time a record was modified and the user clicks the Navigator to...
1
by: Toma¾ Mlakar | last post by:
Hello I'am writing an ASP.NET application and would like to have a page navigator on every page. Navigator would look like this: Start page -> Page 1 -> Page 1.1. I would like as...
2
by: Doug Lind | last post by:
Hi all, I have seen a number of posts re: the BinaryFormatter version incompatibility but nothing on how to recover from it. In my case, I want the exception to trigger an alternate behaviour...
3
by: Rick | last post by:
VS 2005 The short version: How can I set the enabled state of a button depending on if a strongly-typed datatable has a DeleteCommand? *************************** The long version:
1
by: qazplm114477 | last post by:
hello, I have notice that when i drag a table/column from my dataset onto my form, VS2008 automatically populates the form with a binding navigator and some other stuff like the tableadapters and...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
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: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
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

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.