Post #74,693
1/15/03 5:33:36 PM
|
Style naming in CSS...
What are the precedences in the naming conventions in CSS... I don't find a definitive answer.
I see any amount of names... some consistent naming but what I am really asking id the ".stylename" styles...
what is significant about that... I have set of CSS I want to use (all named) but before I use them I want to ake sure my naming convetion is good.
I do know of things like TD TABLE and such... so any good online references... besides [link|http://www.meyerweb.com/eric/css/edge/|Meyer's] site?
[link|mailto:curley95@attbi.com|greg] - Grand-Master Artist in IT | [link|http://www.iwethey.org/ed_curry/|REMEMBER ED CURRY!] [link|http://pascal.rockford.com:8888/SSK@kQMsmc74S0Tw3KHQiRQmDem0gAIPAgM/edcurry/1//|ED'S GHOST SPEAKS!] | Heimatland Geheime Staatspolizei reminds: These [link|http://www.whitehouse.gov/pcipb/cyberstrategy-draft.html|Civilian General Orders], please memorize them. "Questions" will be asked at safety checkpoints. |
|
Post #74,749
1/15/03 9:50:12 PM
|
Use whatever makes sense to you.
The CLASS="" names start out as a completely blank namespace. Populate however you like.
Wade.
Is it enough to love Is it enough to breathe Somebody rip my heart out And leave me here to bleed
| | Is it enough to die Somebody save my life I'd rather be Anything but Ordinary Please
| -- "Anything but Ordinary" by Avril Lavigne. |
|
Post #74,841
1/16/03 7:28:05 AM
|
Where you might be plural for the group
You don't want one person to use Greek and Latin because "it is scientific" when nobody else around speaks either...
Cheers, Ben
"good ideas and bad code build communities, the other three combinations do not" - [link|http://archives.real-time.com/pipermail/cocoon-devel/2000-October/003023.html|Stefano Mazzocchi]
|
Post #75,071
1/17/03 6:29:45 AM
|
Noted.
Is it enough to love Is it enough to breathe Somebody rip my heart out And leave me here to bleed
| | Is it enough to die Somebody save my life I'd rather be Anything but Ordinary Please
| -- "Anything but Ordinary" by Avril Lavigne. |
|
Post #75,147
1/17/03 1:14:03 PM
|
More a question of what to avoid
You can, of course, use any convention you like. But too many times I've seen style namespaces which tend to follow the values of the first style sheet, instead of concentrating on the actual content ..erm.. context.
What I mean is, if you have a header box on a page that, in your first iteration, happens to be big and red, for heaven's sake don't go naming the element style "bigandredbox"--that defeats the purpose of separating content and style. Name it "mainheader" or something. That way, when They decide it should be blue, you don't have a conundrum of naming illogic. It's a maintainability thing.
Many fears are born of stupidity and ignorance - Which you should be feeding with rumour and generalisation. BOfH, 2002 "Episode" 10
|
Post #75,226
1/17/03 5:25:39 PM
|
Thanks!
[link|mailto:curley95@attbi.com|greg] - Grand-Master Artist in IT | [link|http://www.iwethey.org/ed_curry/|REMEMBER ED CURRY!] [link|http://pascal.rockford.com:8888/SSK@kQMsmc74S0Tw3KHQiRQmDem0gAIPAgM/edcurry/1//|ED'S GHOST SPEAKS!] | Heimatland Geheime Staatspolizei reminds: These [link|http://www.whitehouse.gov/pcipb/cyberstrategy-draft.html|Civilian General Orders], please memorize them. "Questions" will be asked at safety checkpoints. |
|
Post #76,207
1/22/03 5:17:54 PM
|
We just went through that here
Our web "expert" wanted to use style names like "ArialTenPointBold" because that's the way he found to do it on Microsoft's web site.
It took me a while to convince him that this was a REALLY, REALLY STUPID naming convention, exactly for the reason you cite.
But I succeeded.
Brian BronsonAsking the rhetorical question: why are M$ sycophants so f*$%$#g dumb?
|
Post #76,356
1/23/03 12:19:18 PM
|
why?
Because that's the way Microsoft wants them. That makes it easier to train them, and retrain them, and ...
Have fun, Carl Forde
|
Post #77,627
1/28/03 4:54:15 PM
|
Thanks. M$ drones' reactions remind me of "Telefon"
The Charles Bronson movie about Russian brainwashed suicide spies: [link|http://us.imdb.com/Title?0076804|IMDB link]
Maybe M$ literature includes this brainwashing. Then, when certain M$ key words and phrases are uttered, their brain switches off and otherwise normal people spout meaningless M$ crapola.
Or maybe Bill Gates has a reality distortion field that puts Steve Jobs' to shame!
Brian Bronson
|
Post #76,050
1/22/03 1:35:41 AM
1/22/03 1:38:39 AM
|
Re: Style naming in CSS...
for the definitive answer go to:
[link|http://www.w3.org/Style/CSS/|http://www.w3.org/Style/CSS/]
Edited by smellyrose
Jan. 22, 2003, 01:38:39 AM EST
|