How to adjust the position of absolutely positioned element using jquery? -
that's use attempt. first pieces of adjustment work fine, visibility , color. position doesn't want adjusted.
i tried
$('#feedback_message_signup_final').css({"visibility": "visible", "color": "#347c17", "position": "absolute", "left":"22.8%"});
and this
$('#feedback_message_signup_final').css({"visibility": "visible", "color": "#cc0000", "left":"25.8%"});
they different variables idea same , won't work in both cases. what's error?
typically when run problems positioning (especially after elements have been display:none'd) -- comes initial dom render doesn't know actual width/height/position of invisible element be. seems rear head on me when use percentages instead of fixed pixels on these elements.
can try fixed pixels instead of percentages?
Comments
Post a Comment