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]
|