Hey there! I've got a div called bat
.
#bat{
width:50%;
height:50%;
}
Here's the HTML:
<div id="bat">dynamic div will appear here</div>
When dynamic content is placed inside the div and it's larger than #bat
, the content overflows. I can hide the overflow using overflow: hidden
in #bat
, but I don't want to do that.
I want the dynamic content to fit nicely into #bat
. I thought about using jQuery child selector to control the width and height of the dynamic content, but I'm not sure how to select dynamically. Can anyone help?