Search code examples
jqueryhtmlcssdomoembed

How can I have text/objects stay in a div element? (Having the div "stretch" so all of the content will stay inside?)


With Internet Explorer when I have an effect with jQuery (slidedown) or a youtube video or something with oembed it will overlap or overflow over the text/content below. How can I have it so the div will "stretch so all of the text or video will stay inside the element?

You can see in IE the youtube link (oembed) goes outside of the div bringing the text with it, but in chrome it will all stay in the div


Solution

  • I was looking at the generated DOM which is quite messy for Firefox and nothing like what's generated for Chrome. I suspect the curvy corners JavaScript and I'd suggest getting that out of the picture to confirm and then taking it up with the developer.