Re: php instead css styles
| From: | Rene Veerman | Date: | Mon, 15 Feb 2021 16:43:23 +0000 |
| Subject: | Re: php instead css styles | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-327494@lists.php.net to get a copy of this message | ||
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@sperling.com> wrote:
>
>
>
> > On Feb 15, 2021, at 8:26 AM, Muhamad Moghadam <msm1365@gmail.com> 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@sperling.com
>