Basit değişken ve piksel soru

0 Cevap php

Eğer çocuklar için, ben bu kolay olacak düşünün.

<div class="vote_pct" style="width: $widthpx;">

I want the variable to be $width and for it to have px on the end. If i put a space, it doesnt work. If i put them together, it treats it as one big variable name.

Could I ask someone the correct snytax to achieve this? Thanks

0 Cevap