Re: [WSG] commonly used order of styles within a css class

2004-09-06 Thread Andrew Krespanis
On Thu, 2 Sep Cameron Adams wrote: I normally use the box model in combination with background to foreground layering to order my styles: - display - positioning - margin - border - padding - background - foreground (text) That's the same approach I use (except 'foreground' would go

Re: [WSG] commonly used order of styles within a css class

2004-09-04 Thread Chris Gandolfo
For ordering statements I usually start with broad statements and then get narrower. Then within this list I sort by html statements and then my IDs and classes as they fall in the page from top to bottom. As for selectors I go in this order positioning display margin padding background (minus

Re: [WSG] commonly used order of styles within a css class

2004-09-04 Thread Cameron Adams
If you think about it, ordering IDs in the order that they appear in the HTML goes against the grain of XHTML/CSS separation of content and style. If you change the position of an object in the HTML, then you have to change it in the CSS, otherwise your order becomes meaningless. The best way is

Re: [WSG] commonly used order of styles within a css class

2004-09-04 Thread Patrick H. Lauke
Sorry Cameron, but I think that you're taking it a step too far here. At the end of the day, those who work with the CSS can order it any way they please and that works for them. This is all about personal preference and working styles, and separation of content and style has nothing to do

Re: [WSG] commonly used order of styles within a css class

2004-09-04 Thread Patrick H. Lauke
To clarify my previous message: what I mean is Cameron Adams wrote: If you change the position of an object in the HTML, then you have to change it in the CSS, otherwise your order becomes meaningless. Yes, it becomes meaningless in that it makes it more convoluted to work with, *but* it does not

Re: [WSG] commonly used order of styles within a css class

2004-09-04 Thread Paul Novitski
On Fri, 3 Sep 2004 15:19:12 +1200, Sean [EMAIL PROTECTED] wrote: Does anyone know if there is a common way of listing styles in CSS? ... For example, perhaps the font and inline information is first, the block, padding and margin information next, and then the positioning. Sean, I've seen more

Re: [WSG] commonly used order of styles within a css class

2004-09-04 Thread Neerav
what about the mozilla way http://www.mozilla.org/contribute/writing/markup ? -- Neerav Bhatt http://www.bhatt.id.au Web Development IT consultancy Mobile: +61 (0)403 8000 27 http://www.bhatt.id.au/blog/ - Ramblings Thoughts http://www.bookcrossing.com/mybookshelf/neerav Sean wrote: Does anyone

Re: [WSG] commonly used order of styles within a css class

2004-09-03 Thread Mark Harwood
Morning Sean, I tend to set mine out like below: #element { width : 768px ; height : auto ; margin : 0px ; padding : 0px ; background : #99cc00 ; color : #ccff00 ; display : block ; float : left ; } anything else get bunged in at the bottom, but i always start with the first 4

Re: [WSG] commonly used order of styles within a css class

2004-09-03 Thread Andy Budd
Sean wrote: Does anyone know if there is a common way of listing styles in CSS? I don't mean the order of a:hover a: visited, or the order of specification. I am thinking more of some logical order that would be helpful to anyone else working on stylesheets I have created. Are you meaning in a

[WSG] commonly used order of styles within a css class

2004-09-02 Thread Sean
Does anyone know if there is a common way of listing styles in CSS? I don't mean the order of a:hover a: visited, or the order of specification. I am thinking more of some logical order that would be helpful to anyone else working on stylesheets I have created. For example, perhaps the font