Re: php instead css styles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



or you can use str_replace() with two arrays, $search = array ( '{$tag1}', '{$tag2}', ....) and $replace = array ( '.example1', '#exampleA' ), on the contents of a index.template.css file, to produce an index.output.css file with file_put_contents.

it's what i use for my HTML instead of my CSS, and it's fast and simple :)

On Mon, Feb 15, 2021 at 3:41 PM Tedd Sperling <tedd@xxxxxxxxxxxx> wrote:



> On Feb 15, 2021, at 8:26 AM, Muhamad Moghadam <msm1365@xxxxxxxxx> wrote:
>
> Hi everybody,
>
> As you know, we use css for styles in website themes design. Is there a way for writing styles in php? for example  to combine style.css and rtl.css.
>
> best regards. 
>
> --
> مجله کامیون سلطان جاده
> Persian Trucking Mag

Hi:

I’m not sure as to what you are asking, but you might consider:

http://sperling.com/examples/pcss/

Cheers,

Tedd

Tedd Sperling
tedd@xxxxxxxxxxxx

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux