This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > December 2003 > switch off CSS for Opera browser?





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 switch off CSS for Opera browser?
Chris

2003-12-12, 1:37 pm

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
Lauri Raittila

2003-12-12, 1:37 pm

In article Chris wrote:
quote:

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



With opera, ctrl+g
quote:

> 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.
quote:

> 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.

Andrew Thompson

2003-12-12, 1:37 pm

"Chris" <absc04@bangor.ac.uk> wrote in message
news:e8fe58ba.0312120341.76291cd9@posting.google.com...
quote:

> 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


Andrew Thompson

2003-12-12, 1:37 pm

"Chris" <absc04@bangor.ac.uk> wrote in message
news:e8fe58ba.0312120341.76291cd9@posting.google.com...
quote:

> 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!)


Steve Pugh

2003-12-12, 1:37 pm

absc04@bangor.ac.uk (Chris) wrote:
quote:

>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/
quote:

>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 <steve@pugh.net> <http://steve.pugh.net/>
Chris

2003-12-15, 4:35 pm

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" <andrew64@bigNOSPAMpond.com> wrote in message news:<TeiCb.49704$aT.12369@news-server.bigpond.net.au>...
quote:

> "Chris" <absc04@bangor.ac.uk> wrote in message
> news:e8fe58ba.0312120341.76291cd9@posting.google.com...
>
> 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!)


Steve Pugh

2003-12-15, 4:35 pm

absc04@bangor.ac.uk (Chris) wrote:

Please don't top post. It reduces your chances of getting hepful
answers.
quote:

>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 <steve@pugh.net> <http://steve.pugh.net/>
Sponsored Links


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