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

switch off CSS for Opera browser?

P: n/a
Hello

Is it possible to switch off stylesheets when a browser opens a web
page?
My pages work well in NS7, IE 6, Mozilla etc but Opera 7 doesnt handle
positional elements very well.

My idea is to have Opera display a text only version of the site with
no styling but use the CSS as normal in other browsers.

Many thanks in advance

Chris
Jul 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
In article Chris wrote:
Hello

Is it possible to switch off stylesheets when a browser opens a web
page?
With opera, ctrl+g
My pages work well in NS7, IE 6, Mozilla etc but Opera 7 doesnt handle
positional elements very well.
URL? Opera generally has much less problems with positioning than IE. I
don't remember any thing with positioning that would not work on Opera
that would work in IE.
My idea is to have Opera display a text only version of the site with
no styling but use the CSS as normal in other browsers.


I don't think you need to do that for Opera, fixing CSS is propably
enaugh.

Google for Owen hack if you still think you need to do that, and some
reason don't want to post URL.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Saapi lähettää meiliä, jos aihe ei liity ryhmään, tai on yksityinen
tjsp., mutta älä lähetä samaa viestiä meilitse ja ryhmään.

Jul 20 '05 #2

P: n/a
"Chris" <ab****@bangor.ac.uk> wrote in message
news:e8**************************@posting.google.c om...
Hello

Is it possible to switch off stylesheets when a browser opens a web
page?


A much researched topic. You might start here,
http://www.ericmeyeroncss.com/bonus/trick-hide.html

Then go on to..
http://www.google.com/search?as_q=hide+styles+opera

HTH

--
Andrew Thompson
* http://www.PhySci.org/ PhySci software suite
* http://www.1point1C.org/ 1.1C - Superluminal!
* http://www.AThompson.info/andrew/ personal site
Jul 20 '05 #3

P: n/a
"Chris" <ab****@bangor.ac.uk> wrote in message
news:e8**************************@posting.google.c om...
Hello

Is it possible to switch off stylesheets when a browser opens a web
page?


Something I forgot to mention in the last response..

It is usually better, though, to ensure your CSS is
valid and create styles that are suited to all browsers
(but of course, that's easier said than done!)
Jul 20 '05 #4

P: n/a
ab****@bangor.ac.uk (Chris) wrote:
Is it possible to switch off stylesheets when a browser opens a web
page?
In many cases it's possible to write the stylesheet in such a way that
some or all of the styles are hidden from certain browsers.

See http://centricle.com/ref/css/filters/
My pages work well in NS7, IE 6, Mozilla etc but Opera 7 doesnt handle
positional elements very well.


Unlikely. In many respects O7 has better CSS support than IE6 . Can
you post a URL? I'm sure you'd rather have the CSS working in all
(modern) browsers than hidden from some.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #5

P: n/a
Thanks to all who have replied. My case for asking the question was
based on my experimentation with the page at
http://www.gazingus.org/html/menuDropdown.html

You will see the page works as it should in Opera 7 here but...

I then took the code and altered the positioning of the menu as can be
seen at http://www.bangor.ac.uk/~absc04/dropdown/dropdown2.html to
allow room for a logo and banner etc.

Seems to work very well in IE, NS etc (as I previously mentioned)
except in Opera 7 - take a look, its doing some strange things - hence
my idea to switch off the CSS (unfortuanately) and provide a text
version.

Thanks again
Chris

"Andrew Thompson" <an******@bigNOSPAMpond.com> wrote in message news:<Te******************@news-server.bigpond.net.au>...
"Chris" <ab****@bangor.ac.uk> wrote in message
news:e8**************************@posting.google.c om...
Hello

Is it possible to switch off stylesheets when a browser opens a web
page?


Something I forgot to mention in the last response..

It is usually better, though, to ensure your CSS is
valid and create styles that are suited to all browsers
(but of course, that's easier said than done!)

Jul 20 '05 #6

P: n/a
ab****@bangor.ac.uk (Chris) wrote:

Please don't top post. It reduces your chances of getting hepful
answers.
Thanks to all who have replied. My case for asking the question was
based on my experimentation with the page at
http://www.gazingus.org/html/menuDropdown.html

You will see the page works as it should in Opera 7 here but...

I then took the code and altered the positioning of the menu as can be
seen at http://www.bangor.ac.uk/~absc04/dropdown/dropdown2.html to
allow room for a logo and banner etc.

Seems to work very well in IE, NS etc (as I previously mentioned)
except in Opera 7 - take a look, its doing some strange things - hence
my idea to switch off the CSS (unfortuanately) and provide a text
version.


The problem is not with the CSS. The problem is with the JavaScript,
Opera has difficulties with properties such as offsetWidth.

I would look around for another dropdown menu script. There are lots
of them out there and some of them work well in a wide range of
browsers, including Opera. The one you have at the moment is odd, to
make any of menus appear at first I need to click on one of the links,
but after that all the menus appear when I mouseover the links.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.