First, here is my code:
Code: Select all
<?php
$style = ".whitebold{
font-family:Arial,Helvetica,sans-serif;
font-size:15px;
font-weight:bold;
color:#ffffff;
}
.whitetext{
font-family:Arial,Helvetica,sans-serif;
font-size:11px;
color:#ffffff;
text-align:justify;
margin:10px;
padding:10px;
}
.whitetext2{
font-family:Arial,Helvetica,sans-serif;
font-size:11px;
color:#ffffff;
text-align:justify;
}
a:link,a:active,a:visited{
font-size:11px;
color:blue;
font-family:Verdana;
text-decoration:underline
}
a:hover{
color:blue;
text-decoration:none;
font-weight:normal
}
.bottom{
font-family:Arial,Helvetica,sans-serif;
font-size:10px;
color:#3A3839;
}
.bottom:link,.bottom:active,.bottom:visited{
font-size:10px;
color:#A51B51;
font-family:Verdana;
text-decoration:underline
}
.bottom:hover{
font-size:10px;
color:#A51B51;
text-decoration:none;
font-weight:normal
}";
$style = str_replace("\n", "", $style);
$style = str_replace(" ", "", $style);
?>
<script language-"javascript blah blah">
_style_sheet = "<?php echo $style; ?>";
etc etc
</script>
<?php
?>I've tried using the str_replace() function but it didn't work
Thanks
Ben