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

Mozilla User Agent ID


Does the Mozilla browser even support CSS?
Very few of my stylesheet formats work in Mozilla.

Is there a local stylesheet that is overriding my stylesheet?
If so, is there an option to turn off the local stylesheet?

Also, I would treat Mozilla like Netscape 4.x in my PHP code; however, I
can't see in the user agent (shown below) any way to
determine that the browser is Mozilla. I've seen other browser
user agents with "Gecko" in them and those browsers do support style sheets.

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007
--
Don Adams
Jul 20 '05 #1
4 3100
Don Adams wrote:
Does the Mozilla browser even support CSS?
Of course - better than most (all?) other browsers.

Very few of my stylesheet formats work in Mozilla.
Then you are probably doing something wrong. Supply a URL and perhaps
somebody can point the problem out to you. A common problem is serving
your stylesheets with the wrong content-type. Alternatively, you can check
your HTML and CSS for syntax errors here:

<URL:http://validator.w3.org/>
<URL:http://jigsaw.w3.org/css-validator/>

Is there a local stylesheet that is overriding my stylesheet?
There are three types of stylesheet - author stylesheets, user stylesheets
(which Mozilla won't use unless you explicitly configure it to), and
user-agent stylesheets (the default presentation). These /cascade/
together (hence the name Cascading Style Sheets) to give the final
presentation.

It's very unlikely that a user stylesheet or user-agent stylesheet is the
source of your problems.

Also, I would treat Mozilla like Netscape 4.x in my PHP code;
Why? There's practically no common behaviour between them.

however, I can't see in the user agent (shown below) any way to
determine that the browser is Mozilla. I've seen other browser
user agents with "Gecko" in them and those browsers do support style
sheets.
Gecko is the rendering engine used by Mozilla, Firebird, Netscape, etc.
Gecko is the piece of software that applies stylesheets, so you are
probably just looking at different versions of Gecko.

If I had to guess, I'd say that you are serving your stylesheets with an
incorrect content-type, and they only get applied by older versions of
Gecko, or it varies depending on whether you are kicking it into "quirks
mode" or "standards-compliant mode". Supply a URL if you can't figure it
out by yourself.

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007


User-agent sniffing is usually a case of trying to fix the symptom and not
the problem. Apart from anything else, it's inherently unreliable and
should only be used as a last resort.
--
Jim Dabell

Jul 20 '05 #2
"Don Adams" <dg*@sgi.com> wrote:
Does the Mozilla browser even support CSS?
One of the best.
Very few of my stylesheet formats work in Mozilla.
Probably something wrong with your stylesheet then. Post a URL of the
web site in question so we can check it out.
Is there a local stylesheet that is overriding my stylesheet?
If so, is there an option to turn off the local stylesheet?
Only if you (or whomever uses this particular copy of Mozilla) have
set one up. Look for a file called user.css
Also, I would treat Mozilla like Netscape 4.x in my PHP code;
NN4.x is an antique dinosaur with many, many bugs and deficencies.
Mozilla is a cutting edge, state of the art browser with some of the
best support for web standards around.
however, I
can't see in the user agent (shown below) any way to
determine that the browser is Mozilla. I've seen other browser
user agents with "Gecko" in them and those browsers do support style sheets.

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007


Gecko os the name of the rendering engine used in Mozilla, Netscape
6+, Camino, etc., etc. They all render pages much the same.

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
It seems "Don Adams" wrote in
comp.infosystems.www.authoring.stylesheets in article
<bu************@fido.engr.sgi.com>:
Does the Mozilla browser even support CSS?
Yes, of course -- and rather better than most of the the
alternatives.
Very few of my stylesheet formats work in Mozilla.


URL? Details? (Please validate your stylesheet at
<http://www.htmlhelp.org/tools/csscheck/> and fix any errors first.)

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #4
"Don Adams" <dg*@sgi.com> wrote in
news:bu************@fido.engr.sgi.com:
Also, I would treat Mozilla like Netscape 4.x in my PHP code; however,
I can't see in the user agent (shown below) any way to
determine that the browser is Mozilla.


Take a different approach, because you can't rely on what you are doing.

For example, many people use Norton Internet Security, and it has a
'Browser Privacy' option:
Browser Privacy prevents Web sites from learning the type of computer
and browser that you are using, the Web site that you last visited,
and other information about your browsing habits
and that's just an example of what "non technical people" can do.
Many people can, and do, make their browsers appear to be other than
what they are actually using, for a variety of reasons.

--
Dave Patton
Canadian Coordinator, the Degree Confluence Project
http://www.confluence.org dpatton at confluence dot org
My website: http://members.shaw.ca/davepatton/
Vancouver/Whistler - host of the 2010 Winter Olympics
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Terence | last post by:
I'm writing an XML application at the moment and I'm trying to implement exception handling - particularly fatal exceptions. currently if a fatal exception is raised, I create error data in XML...
11
by: Jim Willsher | last post by:
Hi all, PHP 4.2.2 on RedHat9 I have some files on my website for people to download, and I want to generate the file location "on the fly", so the URL is held in a database. I have a simple...
1
by: Sims | last post by:
Hi, if i use... // php $info = getenv("HTTP_USER_AGENT"); // I noticed that Mozzila and Netscape <6(?) both use the same Agent. // so i was thinking of if...
7
by: Fuzzyman | last post by:
I'm writing a function that will query the comp.lang.python newsgroup via google groups....... (I haven't got nntp access from work..) I'm using urllib (for the first time)..... and google don't...
60
by: Fotios | last post by:
Hi guys, I have put together a flexible client-side user agent detector (written in js). I thought that some of you may find it useful. Code is here: http://fotios.cc/software/ua_detect.htm ...
1
by: David Gardner | last post by:
When accessing a VB.net application I've created with mozilla it replaces div tags with table tags. I realize that this is a "feature" of .NET to support browsers that are older but Mozilla and...
3
by: Raventhorn | last post by:
I am having problems that I also saw people having in the ASP.NET forums with menus and people coming to a site with weird user agent values. Is there a way to access the user agent before the user...
2
by: Gary Hasler | last post by:
I am having various problems with web pages on our site not displaying the result of form submissions properly for users with Mozilla type browsers (eg Firefox, Netscape). After investigation I...
35
by: RobG | last post by:
Seems developers of mobile applications are pretty much devoted to UA sniffing: <URL: http://wurfl.sourceforge.net/vodafonerant/index.htm > -- Rob
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: 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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.