#sidebar or even #contextnav are better choices, IMO. The difference between a left bar and a right bar is stylesheet change. But it's not a big deal; if you're using sass and keeping your markup DRY renaming your ids should be a piece of cake.
The right name really has to do with what the element will contain. If you're building a layout that is agnostic of content then #leftbar is likely the most semantic name you can give it. Somewhat related is the most recent post on my blog about building a reusable, semantic three column layout using compass and sass. http://acts-as-architect.blogspot.com/ Chris Hunt & pecked on my iPhone... Sorry if it's brief! On Dec 4, 2008, at 8:27 AM, Hampton Catlin <[EMAIL PROTECTED]> wrote: > > Left bar is semantic! Why? Because that's what it is! If it was > floatLeft that might be an issue. > > Name semantically, but never stop being pragmatic. > > > - Hampton > > On Dec 4, 2008, at 11:20 AM, FiXato <[EMAIL PROTECTED]> wrote: > >> Very interesting article. I know I have more than once made myself >> guilty of naming things #leftbar for instance :P >> SASS also helps quite a bit towards structural naming. For instance >> with SASS there is even less tendency to use things like .red-link, >> as >> you can describe those colours in SASS variables ;) >> >> 2008/12/4 scottwb <[EMAIL PROTECTED]>: >>> >>> Great article. And timely too...I was just thinking along these >>> lines >>> over the last few days as I was rewriting a bunch of CSS code in >>> SASS >>> and renaming classes and ids to be pretty close to what this guy >>> calls >>> "structural naming" (though he articulated it much better than >>> what I >>> would have said!) >>> >>> Thanks for sharing the link. >>> -scottwb >>> >>> On Dec 4, 7:30 am, Evgeny <[EMAIL PROTECTED]> wrote: >>>> Hi Hamlites and Sasspeople, just wanted to share an article I've >>>> read that I >>>> think will be interesting to most of you. >>>> >>>> http://sixrevisions.com/css/css-tips/css-tip-2-structural-naming-conv >>>> ... >>>> >>>> "*Structural naming convention* – in essence – just means t >>>> hat y >>>> ou name (by >>>> assigning a class and/or id attribute to them) elements by >>>> describing *what >>>> they are*, and not*where they are* or *how the look*. Its >>>> counterpart is >>>> called presentational naming which describes the *location and/or >>>> appearance >>>> * of web page elements." >>>> >>>> Since we already have presentational representation with Sass and >>>> Haml, it >>>> would be beneficial to use a structural naming convention that >>>> will be more >>>> readable and contribute additional meta information to the layout >>>> elements. >>>> >>>> Hope you enjoy it! >>>> >>>> - evgeny >>>> >>> >> >>> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
