Mike Soultanian wrote: > Kinda goofy question, but I'm looking for some help w/ class names. I'm > hoping that there might be some good established naming conventions for > my css structure. > > I have a 3 column layout, call them columns A, B, and C. > > Column A will be the leftmost column and will always contain navigation > so that's an easy one (sidebar, navbar, etc.). Column C will always > contain content, so that's an easy one as well. Column B, however, is a > little trickier. Sometimes the column layout will be A|B|C, sometimes > A|C|B, and sometimes A|C - all depends on which page of the site you're > on. On some pages column B will hold pictures, on others it will hold a > calendar that quick-links to anchors in column C, and sometimes it's hidden. > > Anyone have a good class name for column B?
Try thinking of it as, "I have columns A and C, and zero or one of {B,D,E,F...}. Then just give them sensible (semantic, even) IDs and apply the same rules to the various names. E.g. using #pictureGallery, #calendarLinks, #namesOfChimps { backgound-color: #f0f; color: #0f0; } will keep your markup semantically useful, while making all three kinds of column look repulsive (or nice, if you use different colours). I assume that B won't be in the markup anyway if it's not to be shown; if I'm not correct, give it an ID such as "superfluous" on those pages and use either #superfluous { visibility: hidden; } or #superfluous { display: none; } as appropriate. HTH, Nick. -- Nick Fitzsimons http://www.nickfitz.co.uk/ ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/