Oh, sorry. I had a typo. For the second one it's:
Code:
jQuery(function($){
var smo = $('.content').offset().left;
$('.megawrapper').each(function(){
$(this).children('div:first').css({left: smo - $(this).offset().left + 5});
});
});
I'm going to edit the original.
However, if you tried the first one and it didn't work, we have other problems. Probably just timing. If so, then try:
Code:
jQuery('window').load(function(){
var $ = jQuery, smo = $('.content').offset().left;
$('.megawrapper').each(function(){
$(this).children('div:first').css({left: smo - $(this).offset().left + 5});
});
});
Bookmarks