subhadeepgayen
06-03-2010, 06:35 PM
Hi i bought a theme from themeforest.
I want to vertically align in middle the #silhoutte and #pages , the original developer was unable to do it, he gave me this code as wayaround but it still does'nt work perfectly in diff screen sizes.
var margin=$(window).height() / 100 * 15;
$('#pages').css('margin-top',margin + 'px');
$('#silhouette').css('top',margin + 'px');
(BTW currently this script is not implemented)
Is there any wayaround or is anyone here more better coder than the original developer? Please don't give answers like search google for vertical alignment, i already did, but am too confused how to implement if anybody would be kind enough to look in code and guide me on how i can do that i will be thankfull.
I want to vertically align in middle the #silhoutte and #pages , the original developer was unable to do it, he gave me this code as wayaround but it still does'nt work perfectly in diff screen sizes.
var margin=$(window).height() / 100 * 15;
$('#pages').css('margin-top',margin + 'px');
$('#silhouette').css('top',margin + 'px');
(BTW currently this script is not implemented)
Is there any wayaround or is anyone here more better coder than the original developer? Please don't give answers like search google for vertical alignment, i already did, but am too confused how to implement if anybody would be kind enough to look in code and guide me on how i can do that i will be thankfull.