473,805 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2084
In article <65**********@a nthonyw.cjb.net >,
an************* *******@anthony w.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**********@a nthonyw.cjb.net >,
an************ ********@anthon yw.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**********@a nthonyw.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************ ********@anthon yw.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.c ss" type="text/css"
media="sc#82;ee n,projection" title="Example" >

and then in the style sheet example.css:

@media screen,projecti on {

/* 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**********@a nthonyw.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
2360
by: Spijon | last post by:
Seems opera can not work normally with javascript, does anyone knows how to fix it? Thanks in advance.
1
1480
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 -- Mark.
7
1820
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 I know its a bug in Opera, but does anyone know of anyway round it? All other current browsers I tested render correctly, and yes that even includes that nasty IE thing
2
1881
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 the main content area. The main content are has several subsections, each of which starts with a mini-menu of four links. I want to have these laid out across the full width of the column. Here's an ASCII attempt to show the desired page layout:
4
5880
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 is causing problems as can be expected since I have used position:fixed. I don't want to use too many hacks and I don't care that the page looks a bit different in IE (their loss) but I want it to be usable.
0
1488
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 browsers (safari, firefox, opera). The bit that drops down is a floating div. I have been playing with the clear property, but without success. Does anyone know why this happens and/or what to do about it? You can find the site here:...
9
2051
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 if there is some sort of a workaround such that it looks good for all browsers? Site: http://www.hansstolp.nl/nieuws.php CSS: http://www.hansstolp.nl/templates/style.css
0
18462
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 use a hidden form to transmit information back to the server so it will know which is the next photo to load. All of this works as intended in modern versions of Internet Explorer, Netscape and Mozilla. With Opera, however, users receive a...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10613
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10363
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9186
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7649
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6876
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4327
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3846
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.