Re: Parsing .css files with php: Cons? [message #176769 is a reply to message #176762] |
Mon, 23 January 2012 00:19 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 1/22/2012 4:35 PM, Michael Fesser wrote:
> .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
>
Yes, it's a matter of style. But I prefer to keep all items of the same
color together. That way when I want to change the color there's only
one place to change the code when I want to change colors.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|