Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
121
rated 0 times [  127] [ 6]  / answers: 1 / hits: 46588  / 13 Years ago, fri, december 2, 2011, 12:00:00

I have some html which seems to default to :



<ul style=top: 72px; visibility: hidden;>


But i need Jquery to rescue me and change top: 72px to top: 37px



Is this possible? as in Firefox 37px seems to show up but in IE7 it shows up as 72px



Thanks



edit: added more info



the ul id = treemenu1



and its parent element is div class = treemenu


More From » jquery

 Answers
7
$('#treemenu1').css({ top: 37 });


Should work fine.



jsFiddle of POC.


[#88784] Thursday, December 1, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dustin

Total Points: 599
Total Questions: 105
Total Answers: 106

Location: Belarus
Member since Tue, Mar 14, 2023
1 Year ago
dustin questions
;