Can someone help me figure out how to calculate the content length based solely on the height and width of a div?
For example, if a Div has a height:200px & width:200px
, I would like to know that the stored content length is 298
.
function calculateContentLength(width, height){
return contentLength;
}
If I input the height and width of a div into this function, it should give me the content length that the div can hold.