im not sure how to ask this so im just gonna say it. i have the following:
<style type="text/css">
div.background
{
width:300px;
height:120px;
background:url(<?php
echo '<img src="img/ships/ship_'.$user_ship['shipclass'].'_tn.jpg" />'
?>) repeat;
border:2px solid black;
}
div.transbox
{
width:200px;
height:100px;
margin:30px 50px;
background-color:#ffffff;
border:1px solid black;
opacity:0.6;
filter:alpha(opacity=60); /* For IE8 and earlier */
}
div.transbox p
{
margin:30px 40px;
font-weight:bold;
color:#000000;
}
</style>
</head>
<body>
<div class="background">
<div class="transbox">
<p>This is some text that is placed in the transparent box.
This is some text that is placed in the transparent box.
This is some text that is placed in the transparent box.
</p>
</div>
</div>
where:
<?php
echo '<img src="img/ships/ship_'.$user_ship['shipclass'].'_tn.jpg" />'
?>
it displays, or should i say, its supposed to display an image based to what a user has selected and some text on top of the image. Obviously it doesnt work. my question is, Can i call php from within css embedded in a php page?.... if not is there a workaround? Thank you for reading.