473,398 Members | 2,812 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,398 software developers and data experts.

CSS workaround for Opera 5

Hi,

I have a web page that works fine in Opera 7 and other modern browsers (IE6,
Mozilla 1.4, NS7.1, etc.), but not in Opera 5. I know which style properties
to set for Opera 5 to make it work, but these affect the layout in the other
browsers in a way that I don't find acceptable.

Is there a way of writing properties that apply only to Opera 5, or of writing
properties that will be hidden from Opera 5, so I can set the Opera 5 values,
then override them for other browsers in the hidden section?

e.g. IE has the <!--[if IE]> trick, and I can hide stuff from NS4 by wrapping
it in @media all{}. Is there an equivalent trick for Opera 5?

As an aside, anyone care to make a guess as to what percentage of Opera users
use each version?

Thanks,

Anthony
Jul 20 '05 #1
6 2059
In article <65**********@anthonyw.cjb.net>,
an********************@anthonyw.cjb.net says...
Hi,

I have a web page that works fine in Opera 7 and other modern browsers (IE6,
Mozilla 1.4, NS7.1, etc.), but not in Opera 5. I know which style properties
to set for Opera 5 to make it work, but these affect the layout in the other
browsers in a way that I don't find acceptable.

I think you can assume that people smart enough to use the Opera browser
are smart enough to upgrade.

Jul 20 '05 #2
Jacqui or (maybe) Pete <po****@spamcop.net> wrote:
In article <65**********@anthonyw.cjb.net>,
an********************@anthonyw.cjb.net says...
Hi,

I have a web page that works fine in Opera 7 and other modern browsers (IE6,
Mozilla 1.4, NS7.1, etc.), but not in Opera 5. I know which style properties
to set for Opera 5 to make it work, but these affect the layout in the other
browsers in a way that I don't find acceptable.

I think you can assume that people smart enough to use the Opera browser
are smart enough to upgrade.


In general yes, but there are some people who see Opera 7, and even
Opera 6 as steps in the wrong direction and who stick with older
versions as a consequence.

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 #3
In article <65**********@anthonyw.cjb.net>, Anthony Williams wrote:
I have a web page that works fine in Opera 7 and other modern browsers (IE6,
Mozilla 1.4, NS7.1, etc.), but not in Opera 5. I know which style properties
to set for Opera 5 to make it work, but these affect the layout in the other
browsers in a way that I don't find acceptable.
Exact problem please? URL?

There is many ways, nothing simple for Opera 5, IIRC.
http://w3development.de/css/hide_css_from_browsers/
Is there a way of writing properties that apply only to Opera 5, or of writing
properties that will be hidden from Opera 5, so I can set the Opera 5 values,
then override them for other browsers in the hidden section?
IIRC, using ill capitalized classes worked for some situation:

..class {} /* correct */
..CLASS {} /* Opera 5 */

Don't remember if it affected some other browser, and I newer tested it
widely. Might need IE hiding to hide Opera 5 rule from IEs. I'm not sure
if it hides from Opera6, I didn't need to hide things from it. (html>body
..CLASS {})
e.g. IE has the <!--[if IE]> trick, and I can hide stuff from NS4 by wrapping
it in @media all{}.
And both by
http://w3development.de/css/hide_css...rowsers/child/
Is there an equivalent trick for Opera 5?
There is no easy hiding method for O5 afaik
As an aside, anyone care to make a guess as to what percentage of Opera users
use each version?


I would guess (±25%):
3.6 4 5 6 7
<1% 0% 10% 50% 40%

Opera users aren't as quick updating as mozilla users, as updating costs
money, unless you want ads. Early versions of 7 many crucial functions of
v6 were missing (some still are.).

--
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 #4
Anthony Williams <an********************@anthonyw.cjb.net> wrote:
Is there a way of writing properties that apply only to Opera 5, or of writing
properties that will be hidden from Opera 5, so I can set the Opera 5 values,
then override them for other browsers in the hidden section?


http://centricle.com/ref/css/filters/?whitebg
Headless

--
Email and usenet filter list: http://www.headless.dna.ie/usenet.htm
Jul 20 '05 #5
Anthony Williams wrote:
I have a web page that works fine in Opera 7 and other
modern browsers (IE6, Mozilla 1.4, NS7.1, etc.), but not
in Opera 5. I know which style properties to set for
Opera 5 to make it work, but these affect the layout in
the other browsers in a way that I don't find acceptable.


This hides the style sheet from Opera 6 or lesser (tested
under Windows - in Linux all I know is that Opera 7 applies
the style rules):

<link rel="stylesheet" href="example.css" type="text/css"
media="sc#82;een,projection" title="Example">

and then in the style sheet example.css:

@media screen,projection {

/* Your style sheet here */

}

See sample here:
http://html.conclase.net/pruebas/hackolt7.html

Regards,
--
Juanra || http://html.conclase.net/
Jul 20 '05 #6
Lauri Raittila <la***@raittila.cjb.net> writes:
In article <65**********@anthonyw.cjb.net>, Anthony Williams wrote:
I have a web page that works fine in Opera 7 and other modern browsers (IE6,
Mozilla 1.4, NS7.1, etc.), but not in Opera 5. I know which style properties
to set for Opera 5 to make it work, but these affect the layout in the other
browsers in a way that I don't find acceptable.
Exact problem please? URL?


The problem is that Opera 5 doesn't support overflow: auto; so the sections of
my page which use this don't scroll. It works fine in Opera 7.

I've managed to rejig the page to get a similar effect for the relevant parts,
but this messes up the display in other browsers.

The page is on my home machine, so there isn't a URL. If I haven't got it
fixed by tomorrow, I might upload a test page to demonstrate.
There is many ways, nothing simple for Opera 5, IIRC.
http://w3development.de/css/hide_css_from_browsers/


Thanks for the URL, it's a good summary of the tricks I've seen elsewhere (and
some I haven't)
Is there a way of writing properties that apply only to Opera 5, or of
writing properties that will be hidden from Opera 5, so I can set the Opera
5 values, then override them for other browsers in the hidden section?


IIRC, using ill capitalized classes worked for some situation:

.class {} /* correct */
.CLASS {} /* Opera 5 */

Don't remember if it affected some other browser, and I newer tested it
widely. Might need IE hiding to hide Opera 5 rule from IEs. I'm not sure
if it hides from Opera6, I didn't need to hide things from it. (html>body
.CLASS {})
e.g. IE has the <!--[if IE]> trick, and I can hide stuff from NS4 by
wrapping it in @media all{}.


And both by
http://w3development.de/css/hide_css...rowsers/child/
Is there an equivalent trick for Opera 5?


There is no easy hiding method for O5 afaik


There's one at http://w3development.de/css/hide_css...browsers/more/ that I
intend to test out later.
As an aside, anyone care to make a guess as to what percentage of Opera
users use each version?


I would guess (±25%):
3.6 4 5 6 7
<1% 0% 10% 50% 40%

Opera users aren't as quick updating as mozilla users, as updating costs
money, unless you want ads. Early versions of 7 many crucial functions of
v6 were missing (some still are.).


Thanks,

Anthony
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.
1
by: Mark Tranchant | last post by:
Not strictly on-topic for an HTML group, but... This may be of interest to anyone using mod_rewrite in combination with mod_negotiation: http://tranchant.plus.com/notes/content-location --...
7
by: TheMartian | last post by:
Opera is driving me nuts, I am trying to get it to actually render a table the full width of the browser window sounds easy, but no, Opera and only Opera leaves a 16px margin on the right edge ...
2
by: Oliver Burnett-Hall | last post by:
I'm trying to move to using tableless page layouts, but I've come across what appears to be a bug in IE5's rendering that I can't find a way to overcome. The page has a sidebar to the left of...
4
by: Peter Fjelsten | last post by:
Guys at comp.infosystems.www.authoring.stylesheets, I have designed a page in (x)HTML transitional that I am happy with in (close to) standard compliant browsers (i.e. Firebird/Opera), but IE...
0
by: der kommissar | last post by:
I'm having a little problem with a menu for a site I'm doing. The menu is all CSS, but in IE all the content below the menu jumps down when the menu pops out, while it doesn't do that in other...
9
by: Daan | last post by:
Hello everyone, The following website looks fine on the latest IE5, IE6 and Firefox. However, in older versions of Internet Explorer, the menu overlaps the text. Does anyone know why this is, or...
0
by: BGS | last post by:
I have a web site (www.on-the-matrix.com) that displays photos in a "slide show" format on ASPX pages that run in an inline frame on an ASP page (or in a separate pop-up window). The ASPX pages...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.