By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,493 Members | 1,920 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,493 IT Pros & Developers. It's quick & easy.

Supporting non-CSS browsers

P: n/a
Hi,

I have several parts of my page that are shown/hidden via javascript
controlling the "display" style.

I was contemplating what will happen on browsers that do not support
CSS (eg text browsers).

Most of the parts still work if shown, but one of them is a
confirmation "Are you sure?" type box. This will presumably get shown
regardless on a text browser which will cause confusion.

Do text browsers support the "display" property at all?
If not, then how can I detect CSS support so I don't include the
confirmation markup?

Thanks,
Lister

Jan 18 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"lister" <li************@hotmail.comwrote in message
news:11**********************@m58g2000cwm.googlegr oups.com...
Hi,

I have several parts of my page that are shown/hidden via javascript
controlling the "display" style.

I was contemplating what will happen on browsers that do not support
CSS (eg text browsers).
If you have syntactically correct and semantically adequate markup, then sure.

It is not a matter of how well CSS degrades unless you rely heavily on positioning or
whatnot. In those rare cases then your content appears in different contexts. Again, use
valid markup and you should be fine.
Most of the parts still work if shown, but one of them is a
confirmation "Are you sure?" type box. This will presumably get shown
regardless on a text browser which will cause confusion.
Is that a JavaScript confirm()? Or if you really mean something in CSS, why not test for
stylesheet support?
Do text browsers support the "display" property at all?
If not, then how can I detect CSS support so I don't include the
confirmation markup?
I have no clue, but would seriously doubt it. The entire purpose of a text only editor is
to display the content textually and um... what is the word for in order, beginning to
end?

Hope this helps.

-Lost
Jan 18 '07 #2

P: n/a
Is that a JavaScript confirm()?
No. It is markup that is displayed via javascript
Or if you really mean something in CSS, why not test for
stylesheet support?
That's sorta my question! :-)

Jan 18 '07 #3

P: n/a
<jg******@parascan.comwrote in message
news:11*********************@38g2000cwa.googlegrou ps.com...

Um... are you "lister"? If so...
>Is that a JavaScript confirm()?
No. It is markup that is displayed via javascript
Enclose your JavaScript within noscript and provide alternate content if JavaScript is
disabled.
> Or if you really mean something in CSS, why not test for
stylesheet support?
That's sorta my question! :-)
OK? Are you asking how to do this? (This is not a JavaScript newsgroup.)

If so, look into document.style.

-Lost
Jan 18 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.