Re: php instead css styles

[email protected] (Rene Veerman)
Newsgroups php.general
Message-ID <CACMzB5exZHMcSzeqpkp3i82JSMML1rQGZG1XDL4EMHOcN-8nOQ@mail.gmail.com>
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 <[email protected]> wrote:

>
>
>
> > On Feb 15, 2021, at 8:26 AM, Muhamad Moghadam <[email protected]> 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
> [email protected]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.