473,320 Members | 2,133 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.

Hierarchy in styles

I came across the following format of style sheets:

..Label .TextBox .DropDown .Title1 .FormButton .TabHeading
{
font-family: Verdana, Helvetica, sans-serif;
}

..Label
{
font-size: 10pt;
line-height: 22px;
}

I thought this means that .Label ends up with a style including the original
font-family plus the font-size and line-height. This doesn't appear to work
on IE6, i.e. it ignores the font-family and doesn't build a hierarchy. You
have to include the font-family within the second .Label style.

Have I misunderstood the specification somewhere?

Cheers, Rob.
Jul 21 '05 #1
2 20601
"Rob Nicholson" <rob.nicholson@nospam_informed-direct.com> wrote:
.Label .TextBox .DropDown .Title1 .FormButton .TabHeading


Spaces such as used here are descendant selectors:
http://www.w3.org/TR/CSS21/selector....dant-selectors

Insert commas to apply a style to several classes.

--
Spartanicus
Jul 21 '05 #2
Rob Nicholson wrote:
I came across the following format of style sheets:

.Label .TextBox .DropDown .Title1 .FormButton .TabHeading
[snip]
I thought this means that .Label ends up with a style including the original
font-family plus the font-size and line-height. This doesn't appear to work
on IE6, i.e. it ignores the font-family and doesn't build a hierarchy. You
have to include the font-family within the second .Label style.


Your selector above matches only an element with a class of TabHeading
that is in an element of class FormButton that is in an element of class
Title1 that is in an element of class Dropdown that is in an element of
class TextBox that is in an element of class Label. You want

.Label, .TextBox, .DropDown, .Title1, .FormButton, .TabHeading

and then you'll get the result you were expecting.
Jul 21 '05 #3

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

Similar topics

5
by: Scott Chapman | last post by:
I'm sure I'm not using the conventional names for this tool, more of a cross-referencer?. I couldn't find it on Google, I think for this reason. I need a tool that will go through a python...
1
by: Chris Lasher | last post by:
Hello, I'm trying to write a tool to scrape through some of the Ribosomal Database Project II's (http://rdp.cme.msu.edu/) pages, specifically, through the Hierarchy Browser....
0
by: Quinton | last post by:
I'm running a website that uses CSS to format the text and a CGI program Coranto that icludes news updates via SSI. My problem is that some parts of the CSS don't seem to take effect on the...
0
by: archway | last post by:
Hi, I would like to build a hierarchy of ProductNode objects like so ProductNode ---Product Node ---ProductNode ------ProductNode ------ProductNode ---ProductNode
2
by: Matt | last post by:
Hello, I would like to generate what I call an "overall class hierarchy" in UML automatically derived from my C++ code source. An example of what I seek: ...
12
by: dan.vendel | last post by:
Hi, I know nothing about javascript, but quite a lot about regulat html and CSS. Have bumped into a problem that people in this fine congregation perhaps can help me with. I'm making a...
2
by: Yaro | last post by:
Hi All (UDB 8.1 FP8, Win) In my simple test database, I have two tables CREATE TABLE "DB2ADMIN"."AAA" ( "F1" INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY, "F2" VARCHAR(10), PRIMARY KEY...
2
by: Do | last post by:
Hi, I have a database table with the following fields: id, name, parentid. These fields are supposed to create a hierarchy for a list box, an infinite hierarchy Child fields of parent fields...
3
by: krzysztof.konopko | last post by:
Hello! I want to design a class hierarchy with one base abstract class, let's say CBase. I have a predicate that every object in the class hierarchy must have a parent object of type from this...
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: 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: 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: 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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.