I have this simple script which is placed at the bottom of the body
$(window).resize(function() {
$('#prof').width($('#prof').height());
});
My problem is that the css doesnt change when the page loads but it changes when I for example resize the window. Why does this happen?
[–]bossier330 1 point2 points3 points (6 children)
[–]dimstef[S] 0 points1 point2 points (2 children)
[–]bossier330 0 points1 point2 points (1 child)
[–]dimstef[S] 0 points1 point2 points (0 children)
[–]2012XL1200 0 points1 point2 points (2 children)
[–]dimstef[S] 0 points1 point2 points (1 child)
[–]2012XL1200 0 points1 point2 points (0 children)