You are here: Re: How to modify CSS with PHP? « PHP Programming Language « IT news, forums, messages
Re: How to modify CSS with PHP?

Posted by deko on 12/17/18 11:56

> You can give your css file extension php and do what you want with them
> like a php file.
>
> like
> .table1 {
> width:<?=$urVar;?>
> }
>
> and include this file in <style .....>

I didn't know that. So in the <head> section of my page, would I use something
like this:

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>my page with dynamic css</title>
<link href="http: // www . example . com/style.css" rel="stylesheet"
type="text/css"> //for regular css
<style>
"http: // www . example . com /style.php"> //for dynamic css
</style>
</head>

Does that look correct?

 

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

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