Create a margin with jQuery to position the element under the absolutely positio...
source link: https://www.codesd.com/item/create-a-margin-with-jquery-to-position-the-element-under-the-absolutely-positioned-element.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Create a margin with jQuery to position the element under the absolutely positioned element
Is it possible to position the bottom element #fooBar 40px below the ul#bar that will have a varying number of li's. I don't want to have to create a class for each element of #fooBar with the appropriate margin. Please see this pic http://yfrog.com/9gstructurewp
basically I want to take the height of ul#bar, then add 80px to that number and make that #fooBar's top margin. thanks
This won't work?
$('#fooBar').css('margin-top', $('ul#bar').height() + 80);
Related Articles
Creating a list with entries requested by the user?
What is the best way to test an empty string with jquery-out-of-the-box?
Sanitize a Variable & amp; to integrate the PHP code with Jquery Validation for the form
Creating a range with a fixed number of elements (length)
Creating check boxes with jQuery - odd behavior of IE
Replace / reload the input list with jQuery and leave the first element
How to create a div with jQuery
Creating Button Flyovers with jQuery
Create a cookie with jquery
Creating complex HTML with jquery
I want to create a publication with a preview of the website
Creating a UITableView with Taller Cells on the iPhone
Create a form with javascript and pass the variable to the function
Twig syntax error when creating a form with {{form_widget (form)}} in the Silex micro-framework (symfony-forms)
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK