CSS partially moved, dynamic resizing not done