Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

resize child along with parent

Posted on 2014-12-20
2
Medium Priority
?
89 Views
Last Modified: 2014-12-21
using jquery resizable - how would i resize a child element when I resize the parent element?
ex below where resizer is resizable and want the child video tag to resize as well.
<div class="resizer">
   <video>
      <source />
   </video>
</div>

thanks
0
Comment
Question by:dgrafx
2 Comments
 
LVL 58

Accepted Solution

by:
Gary earned 2000 total points
ID: 40511289
Add to the plugin init params

alsoResize: $(this).find('video')

Open in new window

0
 
LVL 25

Author Comment

by:dgrafx
ID: 40511294
great - I will try it out - stay tuned ...
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have answered several questions lately that were solved utilizing the power of jQuery's AJAX functions, so I thought I would write an article demonstrating the ease of use. Why should I use jQuery as opposed to regular JavaScript? Now I know…
PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question