Getting div height with php and applying it to an image

mugbrurse

New Member
as the title said i am trying to use php to get the height of a < div> element then with that value, applying to an image. This would actually shrink the image or stretch the image. As i am still new to coding, i searched online and what i found is only solution of doing it in javascript, which is something like this\[code\]DivHeight = document.getElementById("TheDiv").offsetHeight\[/code\]but i couldn't find any that uses php to do so.
 
Back
Top