Thread: php in css
View Single Post
Old 26-06-2007, 08:01   #5 (permalink)
paulanthony
mingin dawg baitch
 
paulanthony's Avatar
 
Join Date: Apr 2004
Location: Belfast
Posts: 1,041
Send a message via MSN to paulanthony
I'm not a PHP coder, but maybe doing things inline also helps.

<?php
if(basename($_SERVER['PHP_SELF'], '.php') == 'index')
{
?>
<style type="text/css">
#left {
width: 140px;
float: left;
}

#main {
margin-left: 150px;
}

#container {
width: 100%;
float: right;
margin-left: -140px;
}
</style>
<?php
}

?>
__________________
  Reply With Quote