FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Parsing .css files with php: Cons?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Parsing .css files with php: Cons? [message #176769 is a reply to message #176762] Mon, 23 January 2012 00:19 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  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
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: phpinfo is not showing in php4 version
Next Topic: arrays with holes
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 16:25:23 GMT 2024

Total time taken to generate the page: 0.04387 seconds