HighDots Forums  

Mac CSS problem

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Mac CSS problem in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeff
 
Posts: n/a

Default Mac CSS problem - 06-09-2006 , 02:00 PM






I've got a fairly simple stylesheet that works fine on the PC side,
IE6, NS, Opera, and FireFox.

On the Mac, it looses the styles part way through the stylesheet.
(JigSaw warns on no generic font-family and no color when background
color is specified.) This happens in Safari, Netscape and IE.

Rearranging the stylesheet fixes everything. ie, changing the order
of the styles. I normally order styles from the top of the page down.

Why would the Mac complain?

Jeff

Reply With Quote
  #2  
Old   
Jeff
 
Posts: n/a

Default Re: Mac CSS problem - 06-09-2006 , 05:58 PM






Michael Vilain wrote:
Quote:
In article <Jzjig.3833$lf4.3746 (AT) newsread1 (DOT) news.pas.earthlink.net>,
Jeff <dont_bug_me (AT) all (DOT) uk> wrote:


I've got a fairly simple stylesheet that works fine on the PC side,
IE6, NS, Opera, and FireFox.

On the Mac, it looses the styles part way through the stylesheet.
(JigSaw warns on no generic font-family and no color when background
color is specified.) This happens in Safari, Netscape and IE.

Rearranging the stylesheet fixes everything. ie, changing the order
of the styles. I normally order styles from the top of the page down.

Why would the Mac complain?

Jeff


URL of "bad page"?


Found it.

I had two id's of the same name. Curiously these were the last
definitions in the "bad" stylesheet (footer). Moving them up fixed this
in the Mac and the PC didn't care. Odd how much damage it did.

Validator found it, I had made some changes in the layout and hadn't
deleted the old container.

<URL: http://69.20.29.70/testBAD.html >

Thanks,
Jeff


Reply With Quote
  #3  
Old   
Jack
 
Posts: n/a

Default Re: Mac CSS problem - 06-10-2006 , 04:37 AM



Jeff wrote:
Quote:
I've got a fairly simple stylesheet that works fine on the PC side,
IE6, NS, Opera, and FireFox.

On the Mac, it looses the styles part way through the stylesheet.
(JigSaw warns on no generic font-family and no color when background
color is specified.) This happens in Safari, Netscape and IE.

Rearranging the stylesheet fixes everything. ie, changing the order
of the styles. I normally order styles from the top of the page
down.
That took me a few passes to grok properly. What I think you mean is, "I
normally declare the rules in the stylesheet in the order in which they
are used in some HTML page", appproximately. That still doesn't make
perfect sense, but it makes more sense to me than writing the stylesheet
backwards (or something), which was the first meaning I extracted!

It is a mistake to declare stylesheet rules in some arbitrary order,
because the order of declaration is significant in CSS. Rules declared
later in a stylesheet take precedence over rules earlier in a
stylesheet. Therefore the order of declaration of CSS rules should be
determined by the way those rules are supposed to interact, not by some
kind of "neatness" requirement.

--
Jack.


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.