Hello all. I am working with some code like this.
echo"<div style='background-image: url(boxshadow2small.jpg);text-align:center; height: 266px; width: 225px; '></div>";
I wanted to be able to control the size of this div with php conditions. I thaught i could do it like this, but its not working.
$someVariable = 200;
echo"<div style='background-image: url(boxshadow2small.jpg);text-align:center; height: $someVariable px; width: 225px; '></div>";
$someVariable is the kind of information i would alter with the use of php control statements. I really would like to get this kind of action working. Does anyone know of something like this being possable? thanks. I guess it would be called dynamic div creation. i duno ,thanks.