Re: Parsing .css files with php: Cons? [message #176762 is a reply to message #176749] |
Sun, 22 January 2012 21:35 |
Michael Fesser
Messages: 215 Registered: September 2010
Karma:
|
Senior Member |
|
|
.oO(Beauregard T. Shagnasty)
> Michael Fesser wrote:
>
>> The whole point of using PHP for creating the CSS is to avoid having to
>> edit a dozen places in the CSS to change some color for example. Instead
>> you make use of PHP and variables. Much simpler.
>
> For one color, in a properly "optimized" CSS file, shouldn't there just
> be one place there as well?
Maybe it's personal preference, but I wouldn't do it. For me it would
mean to "sort" the CSS by properties instead of elements. But I don't
want to spread the properties of an element across the entire CSS: the
background color here, the foreground color there, the border style
somewhere else. Instead I keep them together.
Micha
--
http://mfesser.de/blickwinkel
|
|
|