This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > July 2004 > Purpose of "UNKNOWN" selector in some style sheets





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Purpose of "UNKNOWN" selector in some style sheets
Rob Oaks

2004-07-21, 7:17 pm

I have noticed the presence of declarations like this:

UNKNOWN {
height: 30px
}

in the style sheets used by some highly regarded CSS folks. This
declaration usually (but not always) follows a declaration ending with
"voice-family: inherit."

I assume this is some CSS hack, but I can't find anything on the web
discussing this declaration.

Thanks
Eric A. Meyer

2004-07-21, 7:17 pm

In article <a8f6562e.0407210829.3a8e27a@posting.google.com>,
roboaks@comcast.net (Rob Oaks) wrote:

> I have noticed the presence of declarations like this:
>
> UNKNOWN {
> height: 30px
> }
>
> in the style sheets used by some highly regarded CSS folks. This
> declaration usually (but not always) follows a declaration ending with
> "voice-family: inherit."


My guess is that you're looking at a CSS file you saved to your hard
drive, and that furthmore you saved it using IE/Win, probably but not
necessarily IE5.5 or earlier. When you save a style sheet via IE/Win,
it doesn't save the actual file on the server you've visited, but
instead saves a dump of the style sheet as it's represented within IE's
DOM. If you want to see what people are really doing in their style
sheets, go to the actual CSS file on the server and save that.
And it sounds like you're seeing the results of the Box Model Hack
(http://tantek.com/CSS/Examples/boxmodelhack.html) confusing the browser.

--
Eric A. Meyer (eric@meyerweb.com) http://www.meyerweb.com/eric/
Principal, Complex Spiral Consulting http://www.complexspiral.com/
"CSS: The Definitive Guide," "CSS2.0 Programmer's Reference,"
"Eric Meyer on CSS," and more http://www.meyerweb.com/eric/books/
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews