css resize improvements