In article <ro********************************@4ax.com>,
Headless <me@privacy.net> wrote:
Context: I have an alternate stylesheet switching UI widget on a
page, I don't want that widget to show up in non CSS UA's and if my
author stylesheet is ignored or disabled.
If you want to hide something, visually, then visibility: invisible and
display: none would appear to be more logical approaches.
How do you propose to get that to work in non CSS capable UA's or when
the author stylesheet is ignored or disabled?
As an answer to this and as an advice to the OP:
The widget is obviously reliant on JavaScript. So that is they key. Have
an embedded script generate the content needed for this widget. In the
rare occassion that JS is enabled and CSS is disabled in a DOM-compliant
browser, then no worries; it is obviously disabled for a reason and i
think it is reasonable to assume that the user is aware of this and
realizes that a styleswitcher will not work when no styles are there to
be shown. Unless of course you can detect stylesheets enabled through
JS, but I don't know how to do that.
--
Kris
kr*******@xs4all.netherlands (nl)
"We called him Tortoise because he taught us" said the Mock Turtle.