Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Noscript CSS doesn't work in IE
Old 01-06-2007, 05:56 PM Noscript CSS doesn't work in IE
Skilled Talker

Posts: 81
Trades: 0
Hi

I need to do something like this:



Code:
<noscript>
<style type="text/css">
.classname { display: none; }
</style>
</noscript>

so that when javascript is disabled, certain things vanish.

Works in IE, but not FF.

There's no way round this, I suppose?

Best wishes and thanks


Tony
soon is offline
Reply With Quote
View Public Profile Visit soon's homepage!
 
 
Register now for full access!
Old 01-06-2007, 06:42 PM Re: Noscript CSS doesn't work in IE
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Why not just have .classname set to display: none by default in your css and use javascript to change the display to visible when you need to.

I don't really use <noscript>, but I think it's intention was to display text for browsers that can't handle scripts. I don't think it was meant to add css.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 01-06-2007, 06:54 PM Re: Noscript CSS doesn't work in IE
Skilled Talker

Posts: 81
Trades: 0
Thanks, that seems to be the way go to!

Best wishes!!

Tony

Last edited by soon; 01-06-2007 at 06:54 PM.. Reason: typo
soon is offline
Reply With Quote
View Public Profile Visit soon's homepage!
 
Old 01-06-2007, 08:00 PM Re: Noscript CSS doesn't work in IE
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Glad to help. If it doesn't work well feel free to ask again.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Noscript CSS doesn't work in IE
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13591 seconds with 12 queries