I guess my question was wrong, of course you can achieve it with plain CSS, because even LESS generate plain CSS.
When you're using a library/framework, the idea is that you don't modify the core like in your solution, but rather, re-use the components in your project. On Mon, Aug 3, 2009 at 4:04 PM, craiganz<[email protected]> wrote: > > Hi. > There may be 3 lines of code in both incantations of the previous > example, but you'll note there are actually more tokens (keywords/ > constants/etc.) when using LESS than when using plain CSS. > You'll also find the plain CSS re-factoring of your current example > (below) will also also result in no more code than if using LESS. > LESS is not less it's just different or more. The plain CSS coding > style is also more suited to environments where colour and/or font- > family changes are user-configurable -- while you could do the same > using the LESS coding style you've presented, it simply wouldn't be as > clean a solution. On top of it, LESS just adds more stuff to the > build processes that needs to be maintained. > > HTML: > <div class="sidebar-left"></div> > > CSS: > .span-4, .sidebar-left { > /* just existing .span-4 CSS */ > } > > .last, .sidbar-left { > /* just existing .last CSS */ > } > > .sidebar-left { > margin: 0px; > padding: 10px; > } > > ------ > -Craig > > On Aug 3, 3:07 pm, Sid Bachtiar <[email protected]> wrote: >> I would like to know if anyone knows how to achieve that just by using >> plain CSS. > > > -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "NZ PHP Users Group" 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/nzphpug?hl=en -~----------~----~----~----~------~----~------~--~---
