[CLUE-Tech] PHP or CSS question

Joe 'Zonker' Brockmeier jbrockmeier at earthlink.net
Sat Nov 17 17:59:26 MST 2001


On Sat, 17 Nov 2001, Dave Anselmi wrote:

> Kevin Cullis wrote:
>
> > Hi all,
> >
> > I'm trying to learn PHP, in a small way, and would like to determine
> > whether CSS or PHP would be best for my situation.
>
> Can you do headers/footers in CSS?  For example, if I want the same menu
> bar on every page, it's easy to do a php include to get it.  But how in
> CSS?

CSS won't automagically include headers and footers, use PHP for
that. But, you'll probably want to use the same stylesheets for most
or all of your pages, so you would use PHP to include the CSS in
each page...

CSS isn't a programming language, it's a formatting language. PHP
and CSS work well together -- they don't perform the same functions.

Zonker
--
Joe 'Zonker' Brockmeier -=- jbrockmeier at earthlink.net
http://www.DissociatedPress.net/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Life moves pretty fast. If you don't stop and look around
once in awhile, you could miss it." -- Ferris Bueller




More information about the clue-tech mailing list