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.
--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to