You are here: Re: CSS: Any way to use variables or constants? « HTML « IT news, forums, messages
Re: CSS: Any way to use variables or constants?

Posted by Mark Parnell on 11/20/95 11:36

Deciding to do something for the good of humanity, Curtis
<nospam@nohow.not> spouted in alt.html:

> 1. Are there existing CSS techniques whch would allow
> something like this, at least in part?

You can specify multiple things at once, e.g.

..header, .left_sidebar
{
background-color: #059FBA;
}

> 2. If not, is it theoretically possible to generate CSS
> sheets with PHP, which would allow the declaration and use
> of constants and functions?

Absolutely, as long as it sends the correct mime type (text/css). E.g.

<?php
header("Content-Type: text/css");
$masterColour = "#F830C2";
?>

* {background-color: <?php print($masterColour); ?>;}

etc.

--
Mark Parnell
=====================================================
Att. Google Groups users - this is your last warning:
http://www.safalra.com/special/googlegroupsreply/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация