Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 10:21 PM
Don Adams
Guest
 
Posts: n/a
Default 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


  #2  
Old July 20th, 2005, 10:21 PM
Jim Dabell
Guest
 
Posts: n/a
Default Re: Mozilla User Agent ID

Don Adams wrote:
[color=blue]
> Does the Mozilla browser even support CSS?[/color]

Of course - better than most (all?) other browsers.

[color=blue]
> Very few of my stylesheet formats work in Mozilla.[/color]

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

[color=blue]
> Is there a local stylesheet that is overriding my stylesheet?[/color]

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.

[color=blue]
> Also, I would treat Mozilla like Netscape 4.x in my PHP code;[/color]

Why? There's practically no common behaviour between them.

[color=blue]
> 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.[/color]

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.

[color=blue]
> Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007[/color]

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

  #3  
Old July 20th, 2005, 10:21 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: Mozilla User Agent ID

"Don Adams" <dga@sgi.com> wrote:
[color=blue]
>Does the Mozilla browser even support CSS?[/color]

One of the best.
[color=blue]
>Very few of my stylesheet formats work in Mozilla.[/color]

Probably something wrong with your stylesheet then. Post a URL of the
web site in question so we can check it out.
[color=blue]
>Is there a local stylesheet that is overriding my stylesheet?
>If so, is there an option to turn off the local stylesheet?[/color]

Only if you (or whomever uses this particular copy of Mozilla) have
set one up. Look for a file called user.css
[color=blue]
>Also, I would treat Mozilla like Netscape 4.x in my PHP code;[/color]

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.
[color=blue]
> 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[/color]

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 <steve@pugh.net> <http://steve.pugh.net/>
  #4  
Old July 20th, 2005, 10:21 PM
Stan Brown
Guest
 
Posts: n/a
Default Re: Mozilla User Agent ID

It seems "Don Adams" wrote in
comp.infosystems.www.authoring.stylesheets in article
<bu97bh$ng6jt$1@fido.engr.sgi.com>:[color=blue]
>Does the Mozilla browser even support CSS?[/color]

Yes, of course -- and rather better than most of the the
alternatives.
[color=blue]
>Very few of my stylesheet formats work in Mozilla.[/color]

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/
  #5  
Old July 20th, 2005, 10:21 PM
Dave Patton
Guest
 
Posts: n/a
Default Re: Mozilla User Agent ID

"Don Adams" <dga@sgi.com> wrote in
news:bu97bh$ng6jt$1@fido.engr.sgi.com:
[color=blue]
> 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.[/color]

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
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles