i have a code like $('<div class="magic"></div>').html('<span><br \/>Введите Логин и Пароль<br \/><br \/><form action"" method="get"><input name="login" type="text" value="login" size="10" maxlength="10" \/ > <input name="password" type="password" value="password" size="10" maxlength="10" \/><\/form><br \/><\/span><span class="theone2"><a href="submit">Отправить<\/a><br \/><br \/ >').appendTo('body'); s = windowsize(2); k = (+$('.magic').css("width").replace(/px$/,'')); s = (s[0] - k) / 2; $('.magic').css("left",s);
it creates a div centered on the screen with login and password fields... it works in firefox... but in ie6/ie7 it shows only text in last span... what's wrong with this?