473,385 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

switch off CSS for Opera browser?

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
6 2092
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
"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
"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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Spijon | last post by:
Seems opera can not work normally with javascript, does anyone knows how to fix it? Thanks in advance.
7
by: Pete | last post by:
I'm working (playing) on a mouse following script. Yes, the sort no one likes but I'm having great fun tinkering with it - sad. Anyway, if there's enough page content to cause scrolling and I...
13
by: TheKeith | last post by:
Is it just me or does opera and ie not render the float style properly? IE does a sucky job at it, but opera makes a total mess; Mozilla/Firefox renders it correctly however. I'm just trying to be...
6
by: Jeremy | last post by:
I really want to make my scripts work in Opera. I really, really do. But it seems like an uphill struggle. First of all, I can't get ANY kind of debug output. No error messages in the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.