Solved

resize child along with parent

Posted on 2014-12-20
2
73 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 500 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jQuery dialog box help 2 22
Need help with jQuery elements filtering 2 16
On Load function does not trigger on iPhone 4 49
modify change color of text 9 33
by Julian Matz As of jQuery (http://jquery.com/) 1.4 the .live() method (http://api.jquery.com/live/) supports custom events as well as some standard JavaScript events that it previously didn't support. Among these is the submit event. Unlike …
In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
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)
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

685 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