This content has been marked as final.
Show 3 replies
-
1. Re: PHP code in css file
Ben Pleysier Feb 22, 2011 3:16 AM (in response to mahendra rajeshirke)Give the file a PHP extension as in myStyles.php and copy and paste this content
<?php
header("Content-type: text/css; charset=UTF-8");
?>
#msc_menu {
position: relative;
float: right;
width: <?php echo $menu_width?>px;
margin: 0px 0px 10px;
padding-top: 10px;
font-family: <?php echo $theme_fonts_titles?>;
font-size: 10px;
background: <?php echo $theme_menu_bg?>;
border-top: 1px solid <?php echo $theme_menu_bg?>;
border-bottom: 1px solid <?php echo $theme_menu_bg?>;
clear: both;
}Then include the file in your main document as in
<link href="myStyles.php" rel="stylesheet">
Gramps
-
2. Re: PHP code in css file
mahendra rajeshirke Feb 22, 2011 3:27 AM (in response to Ben Pleysier)no, i am just telling dat php script can be added in .css file
-
3. Re: PHP code in css file
John Waller Feb 22, 2011 3:33 AM (in response to Ben Pleysier)I think mahendra is saying that what he's doing in the original post already works.



