[CLUE-Tech] PHP or CSS question

Jeffery Cann jccann at home.com
Sat Nov 17 11:03:43 MST 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kev,

CSS helps with site layout and style (colors, layout, fonts).  It was 
designed for this, so it works well.  For example, I use CSS to define the 
syle of my sites and when I want to change something, I simply update the 
style sheet.

PHP can also handle layout and style and it can work well.  But, PHP is meant 
to aid you in making the site dynamic.  For example, you can use PHP to 
publish news items and build a 'What's New' page easily.  You can store data 
in a database (almost any database) and retrieve it from PHP.

So, to solve your problem of 'making one change that affects the whole site', 
you should use CSS if that change is simply one of look.  If you want to 
easily update information that affects the whole site, use php.

Jeff

On Saturday 17 November 2001 10:32, you 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.
>
> I'm working on a web site (actually two, not very big ones at the
> moment) and I've been thinking that CSS would help with the
> administration of the web site (i.e. making one change that affects the
> whole site, like footers, headers, etc.) and wondered if PHP would be
> the better way. How this came about was I had turned off my JAVA/SS on
> my Netscape and found once I turned on SS that some sites became normal
> (hey, I know that I'm getting lazy ;-) ). However, not one to leave
> visitors stranded who visit these sites who may have their JAVA/SS
> turned off, would PHP still provide the look I want with the "ease of
> administration" help if visitors had turned off JAVA/SS ? I have not
> moved anything to SS or PHP yet, but wanted some input from experts.
>
> KC
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjv2pn8ACgkQw3/GBQk72kBzKgCfbs4qsVK8ojruJzStUAlxzuJc
p2sAn01L6WSK5E2X1K6iO3nrFkMWnbEd
=hDpb
-----END PGP SIGNATURE-----



More information about the clue-tech mailing list